Changeset 5631


Ignore:
Timestamp:
Jul 31, 2017, 2:40:42 PM (20 months ago)
Author:
mabarracus
Message:

fix

File:
1 edited

Legend:

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

    r5630 r5631  
    33
    44URL="https://www.dropbox.com/download?plat=lnx."
     5export TEXTDOMAIN="zero-lliurex-dropbox-installer"
     6
    57OK_LABEL=$(gettext 'Accept')
    68CANCEL_LABEL=$(gettext 'Cancel')
     
    1416fi
    1517
    16 export TEXTDOMAIN="zero-lliurex-dropbox-installer"
    1718zero-center add-pulsating-color zero-lliurex-dropbox-installer
    1819zenity --question --title="Dropbox client installer" --text="$(gettext "Welcome to Dropbox client installer for Llurex\nThis will install Dropbox client on your computer. Continue?\n")" $BTN_TXT
     
    3233                if [ $? -eq 0 ]
    3334                then
    34                     su -c "notify-send -t 2000 -u normal -i /usr/share/icons/Vibrancy-Colors/apps/48/zero-center.png 'Zero-Installer' '$(gettext "Package Dropbox client has been installed in your system")'" $USER
    35                     zero-center set-configured zero-lliurex-dropbox-installer
    36                     su $USER -c "$DESTDIR/.dropbox-dist/dropboxd >/dev/null 2>/dev/null " &
    37                     rm -f /tmp/drclient.tgz
     35                    zero-installer install caja-dropbox
     36                    if [ $? -eq 0 ];then
     37                        su -c "notify-send -t 2000 -u normal -i /usr/share/icons/Vibrancy-Colors/apps/48/zero-center.png 'Zero-Installer' '$(gettext "Package Dropbox client has been installed in your system")'" $USER
     38                        zero-center set-configured zero-lliurex-dropbox-installer
     39                        su $USER -c "$DESTDIR/.dropbox-dist/dropboxd >/dev/null 2>/dev/null " &
     40                        rm -f /tmp/drclient.tgz
     41                    else
     42                        su -c "notify-send -t 2000 -u critical -i /usr/share/icons/Vibrancy-Colors/apps/48/zero-center.png 'Zero-Installer' '$(gettext "Package Dropbox client is not installed in your system, please  retry again or contact with Lliurex Team at") http://mestreacasa.gva.es/web/lliurex/forums'" $USER
     43                        rm -f /tmp/drclient.tgz
     44                        rm -r $DESTDIR
     45                    fi
    3846                else
    3947                    su -c "notify-send -t 2000 -u critical -i /usr/share/icons/Vibrancy-Colors/apps/48/zero-center.png 'Zero-Installer' '$(gettext "Package Dropbox client is not installed in your system, please  retry again or contact with Lliurex Team at") http://mestreacasa.gva.es/web/lliurex/forums'" $USER
     
    4553                rm -r $DESTDIR
    4654        fi
     55       
    4756fi
    4857zero-center remove-pulsating-color zero-lliurex-dropbox-installer
Note: See TracChangeset for help on using the changeset viewer.