Ignore:
Timestamp:
Jun 5, 2018, 1:07:05 PM (17 months ago)
Author:
jrpelegrina
Message:

Deleted files for the zenity version of the zomando

File:
1 edited

Legend:

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

    r5631 r7353  
    11#!/bin/bash
    2 #set -x
    32
    4 URL="https://www.dropbox.com/download?plat=lnx."
    5 export TEXTDOMAIN="zero-lliurex-dropbox-installer"
    6 
    7 OK_LABEL=$(gettext 'Accept')
    8 CANCEL_LABEL=$(gettext 'Cancel')
    9 BTN_TXT="--ok-label=$OK_LABEL --cancel-label=$CANCEL_LABEL"
    10 
    11 if [[ "$(arch)" == "x86_64" ]]
    12 then
    13         URL="${URL}x86_64"
    14 else
    15         URL="${URL}x86"
    16 fi
    17 
    18 zero-center add-pulsating-color zero-lliurex-dropbox-installer
    19 zenity --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
    20 if [ $? -eq 0 ]
    21 then
    22         echo "$(gettext Downloading client...)"
    23         USERHOME=$(getent passwd $USER | cut -f6 -d ':')
    24         BINDIR=$USERHOME"/.local/bin"
    25         DESTDIR=$BINDIR"/dropbox"
    26         mkdir -p $DESTDIR
    27         curl --progress-bar -o /tmp/drclient.tgz -L $URL
    28         if [ $? -eq 0 ]
    29         then
    30                 cd $DESTDIR
    31                 tar xfz /tmp/drclient.tgz
    32                 chown -vR $USER:$USER $BINDIR 2>/dev/null > /dev/null
    33                 if [ $? -eq 0 ]
    34                 then
    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
    46                 else
    47                     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
    48                     rm -f /tmp/drclient.tgz
    49                     rm -r $DESTDIR
    50                 fi
    51         else
    52                 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
    53                 rm -r $DESTDIR
    54         fi
    55        
    56 fi
    57 zero-center remove-pulsating-color zero-lliurex-dropbox-installer
    58 exit 0
     3epi-gtk /usr/share/zero-lliurex-dropbox/dropbox-client.epi
Note: See TracChangeset for help on using the changeset viewer.