Ignore:
Timestamp:
Apr 28, 2016, 8:57:17 AM (5 years ago)
Author:
Juanma
Message:

replace critical by normal and add allow-unauthorized

File:
1 edited

Legend:

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

    r101 r1294  
    8282                        echo "________________________________________________________________________________" >> /tmp/zero-installer.log
    8383                        echo " " >> /tmp/zero-installer.log
    84                         su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$NAME_PACK $MSG_FINISH_INSTALLED /tmp/zero-installer.log'" $USER
     84                        su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$NAME_PACK $MSG_FINISH_INSTALLED /tmp/zero-installer.log'" $USER
    8585                       
    8686                        exit 0
     
    9797                       
    9898                        #En segundo plano realizaremos la instalacion del paquete almacenando su salida en nuestro log, eliminando nuestro fichero ayuda para salir del bucle.
    99                         (apt-get $INSTRUCCION -y $2 >> /tmp/zero-installer.log ; rm /tmp/zero-install.log) &
    100                         echo "................................................................................." >> /tmp/zero-installer.log
    101                         echo " " >> /tmp/zero-installer.log
    102                         echo "Zero-center-------Your instruction is----------apt-get $INSTRUCCION -y $2" >> /tmp/zero-installer.log
     99                        (apt-get $INSTRUCCION -y --allow-unauthenticated $2 >> /tmp/zero-installer.log ; rm /tmp/zero-install.log) &
     100                        echo "................................................................................." >> /tmp/zero-installer.log
     101                        echo " " >> /tmp/zero-installer.log
     102                        echo "Zero-center-------Your instruction is----------apt-get $INSTRUCCION -y --allow-unauthenticated $2" >> /tmp/zero-installer.log
    103103                        echo "................................................................................." >> /tmp/zero-installer.log
    104104
     
    119119                        echo "________________________________________________________________________________" >> /tmp/zero-installer.log
    120120                        echo " " >> /tmp/zero-installer.log
    121                         su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$2 $MSG_FINISH_SYSTEM1 $FINISHED $MSG_FINISH_SYSTEM /tmp/zero-installer.log'" $USER
     121                        su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$2 $MSG_FINISH_SYSTEM1 $FINISHED $MSG_FINISH_SYSTEM /tmp/zero-installer.log'" $USER
    122122                fi
    123123                }
     
    181181                LANG=en apt-cache show $2 | grep -i Version
    182182                if [ "$?" != "0" ]; then
    183                         su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Impossible to install $2, it dont exists in your repositories, abort zero-installer command'" $USER
     183                        su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Impossible to install $2, it dont exists in your repositories, abort zero-installer command'" $USER
    184184                        echo "Your package $2 don't exists in your repositories, abort zero-installer command"
    185185                        echo "Your package $2 don't exists in your repositories, abort zero-installer command" >> /tmp/zero-installer.log
    186                         #su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Your package $2 DO NOT EXISTS in your repositories, abort zero-installer command, and you can view the log in /tmp/zero-installer.log. If you cannot resolve the problem please contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums'" $USER
     186                        #su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Your package $2 DO NOT EXISTS in your repositories, abort zero-installer command, and you can view the log in /tmp/zero-installer.log. If you cannot resolve the problem please contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums'" $USER
    187187                        exit 1
    188188                fi
Note: See TracChangeset for help on using the changeset viewer.