Changeset 4906


Ignore:
Timestamp:
May 24, 2017, 6:08:16 PM (2 years ago)
Author:
Juanma
Message:

bugfix

File:
1 edited

Legend:

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

    r3798 r4906  
    2121then
    2222        echo "Downloading telegram..."
    23         BINDIR=$HOME"/.local/bin"
     23        USERHOME=$(getent passwd $USER | cut -f6 -d ':')
     24        echo $USER
     25        echo $USERHOME
     26        BINDIR=$USERHOME"/.local/bin"
    2427        DESTDIR=$BINDIR"/telegram"
    2528        mkdir -p $DESTDIR
     
    3134                tar -Jxvf $TSETUP
    3235                chown -vR $USER:$USER $BINDIR
    33                 su $USER -c /usr/bin/lliurex-telegram.sh
    3436                if [ $? -eq 0 ]
    3537                then
    3638                su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $PACKAGE_NAME has been installed in your system,'" $USER   
    37                         zero-center set-configured lliurex-zero-installer-telegram
     39                        zero-center set-configured zero-lliurex-telegram
    3840                else
    3941                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   
     
    4143                fi
    4244                cd $FIRSTPWD
     45                su $USER -c /usr/bin/lliurex-telegram.sh
    4346        else
    4447                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   
Note: See TracChangeset for help on using the changeset viewer.