Ignore:
Timestamp:
Jun 6, 2017, 2:48:45 PM (3 years ago)
Author:
jrpelegrina
Message:

WIP in fix some bugs in zero-center

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-reinstall

    r2108 r5095  
    99MSG_FINISH_SYSTEM1=$(gettext "has been")
    1010MSG_FINISH_SYSTEM=$(gettext "in your system, and you can view the log in")
    11 MSG_FINISH_ERROR=$(gettext "Please review your repositories and reinstall it again .If you can\'t resolve the problem please contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums")
     11MSG_FINISH_ERROR=$(gettext "Please review your repositories and reinstall it again .If you can't resolve the problem please contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums")
     12MSG_BUTTON_OK=$(gettext "OK")
    1213
    13 
     14ZEN_BUTTON_OK="--ok-label=$MSG_BUTTON_OK"
    1415PACKAGE_NAME="$1"
    1516INSTALL_LOG="/tmp/zero-${PACKAGE_NAME}.log"
     
    7879                        echo " ------------------- " >> $INSTALL_LOG
    7980                        echo "Package $PACKAGE_NAME has been installed, Congratulations"
    80                         zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG" > /dev/null 2>&1 &
     81                        zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG" $ZEN_BUTTON_OK > /dev/null 2>&1 &
    8182                        su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG'" $USER
    8283                        exit 0
     
    8485                        echo " ------------------- " >> $INSTALL_LOG
    8586                        echo "$MSG_FINISH_ERROR"
    86                         zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG" > /dev/null 2>&1 &
     87                        zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG" $ZEN_BUTTON_OK > /dev/null 2>&1 &
    8788                        su -c "notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG'" $USER
    8889                        exit 1
Note: See TracChangeset for help on using the changeset viewer.