Changeset 2076


Ignore:
Timestamp:
Jun 30, 2016, 10:36:23 AM (3 years ago)
Author:
Juanma
Message:

Added installation checks

Location:
zero-lliurex-adobeair/trunk/fuentes/zero-lliurex-adobeair.zlaunchers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-adobeair/trunk/fuentes/zero-lliurex-adobeair.zlaunchers/zero-lliurex-adobeair-scratch2.zmd

    r584 r2076  
    2626        if [ "$TEST" = 'installed' ]; then
    2727                echo "Package $VERSION already installed, we have to uninstall it"
    28                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Scratch is already installed in your system, now we are goig to remove it and install it again.'" $USER
     28                su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Scratch is already installed in your system, now we are goig to remove it and install it again.'" $USER
    2929                touch $TMP_LOG
    3030                (apt-get remove -y edu.media.mit.scratch2editor > $TMP_LOG ; rm $TMP_LOG) &
     
    4747        if [ "$TEST" != 'installed' ]; then
    4848                echo "Package $DEPENDS is not installed in your system, it's necessary........ we'll do it"
    49                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $DEPENDS is not installed in your system, it is necessary........ we are goig to do it'" $USER
     49                su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $DEPENDS is not installed in your system, it is necessary........ we are goig to do it'" $USER
    5050                /usr/share/zero-center/zmds/zero-lliurex-adobeair.zmd           
    5151        else
     
    8585        then
    8686                #Problemas al instalar adobeair requieren de la creación manual de links
    87                 su -c "notify-send -t 800 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$MSG_BAJAR'" $USER
     87                su -c "notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$MSG_BAJAR'" $USER
    8888                rc=0
    8989                host $elaula || rc=1
     
    148148                                echo "Zero-center-------Your package $VERSION has been installed in your system"
    149149                                echo "Zero-center-------Your package $2 has been $FINISHED in your system" >> /tmp/zero-installer.log
    150                                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Your package $VERSION has been installed in your system'" $USER
     150                                su -c "notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Your package $VERSION has been installed in your system'" $USER
    151151                                zenity --info --title="Zero-installer" --text="Your package $VERSION has been installed in your system" > /dev/null 2>&1 &
    152152                        else
    153153                                zenity --info --title="Zero-installer" --text="Your package $VERSION has a problem to be installed in your system, please see more info at $LOG_FILE" > /dev/null 2>&1
    154                                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Your package $VERSION has a problem to be installed in your system, please see more info at $LOG_FILE'" $USER
     154                                su -c "notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Your package $VERSION has a problem to be installed in your system, please see more info at $LOG_FILE'" $USER
    155155                                zero-center remove-pulsating-color zero-lliurex-adobeair-scratch2
    156156                                zero-center set-non-configured zero-lliurex-adobeair-scratch2
  • zero-lliurex-adobeair/trunk/fuentes/zero-lliurex-adobeair.zlaunchers/zero-lliurex-adobeair.zmd

    r585 r2076  
    2020        if [ "$TEST" = 'installed' ]; then
    2121                echo "Package $PACKAGE_NAME already installed, we have to uninstall it"
    22                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME is already installed in your system, now we are goig to remove it and install it again.'" $USER
     22                su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME is already installed in your system, now we are goig to remove it and install it again.'" $USER
    2323                touch $TMP_LOG
    2424                (apt-get remove -y $PACKAGE_NAME > $TMP_LOG ; rm $TMP_LOG) &
     
    158158                        if [ $rc -eq 0 ]
    159159                                then
    160                                         #su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' ' $MSG_BAJAR ' " $USER
     160                                        #su -c "notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' ' $MSG_BAJAR ' " $USER
    161161                                        #Vamos a comprobar si estamos en el aula y si somos el server, para segun que caso poner el proxy para la descarga o no.
    162162                                        rc=0
     
    253253        if [ $rc -eq 0 ]
    254254                then
    255                         #su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' ' $MSG_BAJAR ' " $USER
     255                        #su -c "notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' ' $MSG_BAJAR ' " $USER
    256256                        #Vamos a comprobar si estamos en el aula y si somos el server, para segun que caso poner el proxy para la descarga o no.
    257257                        rc=0
Note: See TracChangeset for help on using the changeset viewer.