Changeset 1294


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

replace critical by normal and add allow-unauthorized

Location:
zero-center/trunk/fuentes/install-files/usr/bin
Files:
5 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
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-lliurex-axel

    r101 r1294  
    118118                                        done
    119119                        rm $2/$NAME_FILE*
    120                         notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $NAME_FILE"
     120                        notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $NAME_FILE"
    121121                        echo "Your downloading file $1 has been cancelled"
    122122                        echo ""
    123123                        exit 1
    124124                        fi
    125                 notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$NAME_FILE $MSG_DONWLOADED $2"
     125                notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$NAME_FILE $MSG_DONWLOADED $2"
    126126                echo "File $1 is downloaded in $2"
    127127        }
     
    167167                                        done
    168168                        rm "$2"/"$3"*
    169                         notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $1"
     169                        notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $1"
    170170                        echo "Your downloading file $1 has been cancelled"
    171171                        echo ""
    172172                        exit 1
    173173                        fi
    174                 notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$1 $MSG_DONWLOADED $2"
     174                notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$1 $MSG_DONWLOADED $2"
    175175                echo "File $3 is downloaded in $2"
    176176        }
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-lliurex-wget

    r816 r1294  
    118118                                        done
    119119                        rm $2/$NAME_FILE*
    120                         notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $NAME_FILE"
     120                        notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $NAME_FILE"
    121121                        echo "Your downloading file $1 has been cancelled"
    122122                        echo ""
    123123                        exit 1
    124124                        fi
    125                 notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$NAME_FILE $MSG_DONWLOADED $2"
     125                notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$NAME_FILE $MSG_DONWLOADED $2"
    126126                echo "File $1 is downloaded in $2"
    127127        }
     
    167167                                        done
    168168                        rm "$2"/"$3"*
    169                         notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $1"
     169                        notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $1"
    170170                        echo "Your downloading file $1 has been cancelled"
    171171                        echo ""
    172172                        exit 1
    173173                        fi
    174                 notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$1 $MSG_DONWLOADED $2"
     174                notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$1 $MSG_DONWLOADED $2"
    175175                echo "File $3 is downloaded in $2"
    176176        }
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-reinstall

    r101 r1294  
    7777                        echo "Package $PACKAGE_NAME has been installed, Congratulations"
    7878                        zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG" > /dev/null 2>&1 &
    79                         su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG'" $USER
     79                        su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG'" $USER
    8080                        exit 0
    8181                else
     
    8383                        echo "$MSG_FINISH_ERROR"
    8484                        zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG" > /dev/null 2>&1 &
    85                         su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG'" $USER
     85                        su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG'" $USER
    8686                        exit 1
    8787                fi
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-repos-update

    r101 r1294  
    5656                echo "________________________________________________________________________________" >> "$LOG"
    5757                echo " " >> "$LOG"
    58                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Lliurex-Update' '$MSG_UPDATEDINFO'" $USER
     58                su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Lliurex-Update' '$MSG_UPDATEDINFO'" $USER
    5959        }
    6060
Note: See TracChangeset for help on using the changeset viewer.