Changeset 3794


Ignore:
Timestamp:
Mar 1, 2017, 5:52:34 PM (2 years ago)
Author:
Juanma
Message:

Fix permissions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-installers/trunk/fuentes/zero-lliurex-telegram.zmds/zero-lliurex-telegram.zmd

    r3793 r3794  
    2222        echo "Downloading telegram..."
    2323        BINDIR="$HOME"/.local/bin""
     24        DESTDIR=$BINDIR"/telegram"
    2425        mkdir -p $BINDIR
    25         DESTDIR=$BINDIR"/telegram"
    2626        mkdir -p $DESTDIR
    27         chown -R $USER:$USER $BINDIR
    2827        zero-lliurex-wget $TURL$TSETUP $DESTDIR
    2928        if [ $? -eq 0 ]
     
    3231                cd $DESTDIR
    3332                tar -Jxvf $TSETUP
     33                chown -R $USER:$USER $BINDIR
    3434                su $USER -c ./Telegram/Telegram
    3535                if [ $? -eq 0 ]
     
    3939                else
    4040                su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $PACKAGE_NAME is not installed in your system, please  retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums'" $USER   
     41                        rm -r $DESTDIR
    4142                fi
    4243                cd $FIRSTPWD
    4344        else
    4445                su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $PACKAGE_NAME is not installed in your system, please  retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums'" $USER   
     46                rm -r $DESTDIR
    4547        fi
    4648fi
Note: See TracChangeset for help on using the changeset viewer.