Changeset 1294 for zero-center/trunk
- Timestamp:
- Apr 28, 2016, 8:57:17 AM (5 years ago)
- 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 82 82 echo "________________________________________________________________________________" >> /tmp/zero-installer.log 83 83 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'" $USER84 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 85 85 86 86 exit 0 … … 97 97 98 98 #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.log99 (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 103 103 echo "................................................................................." >> /tmp/zero-installer.log 104 104 … … 119 119 echo "________________________________________________________________________________" >> /tmp/zero-installer.log 120 120 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'" $USER121 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 122 122 fi 123 123 } … … 181 181 LANG=en apt-cache show $2 | grep -i Version 182 182 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'" $USER183 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 184 184 echo "Your package $2 don't exists in your repositories, abort zero-installer command" 185 185 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'" $USER186 #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 187 187 exit 1 188 188 fi -
zero-center/trunk/fuentes/install-files/usr/bin/zero-lliurex-axel
r101 r1294 118 118 done 119 119 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" 121 121 echo "Your downloading file $1 has been cancelled" 122 122 echo "" 123 123 exit 1 124 124 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" 126 126 echo "File $1 is downloaded in $2" 127 127 } … … 167 167 done 168 168 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" 170 170 echo "Your downloading file $1 has been cancelled" 171 171 echo "" 172 172 exit 1 173 173 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" 175 175 echo "File $3 is downloaded in $2" 176 176 } -
zero-center/trunk/fuentes/install-files/usr/bin/zero-lliurex-wget
r816 r1294 118 118 done 119 119 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" 121 121 echo "Your downloading file $1 has been cancelled" 122 122 echo "" 123 123 exit 1 124 124 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" 126 126 echo "File $1 is downloaded in $2" 127 127 } … … 167 167 done 168 168 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" 170 170 echo "Your downloading file $1 has been cancelled" 171 171 echo "" 172 172 exit 1 173 173 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" 175 175 echo "File $3 is downloaded in $2" 176 176 } -
zero-center/trunk/fuentes/install-files/usr/bin/zero-reinstall
r101 r1294 77 77 echo "Package $PACKAGE_NAME has been installed, Congratulations" 78 78 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'" $USER79 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 80 80 exit 0 81 81 else … … 83 83 echo "$MSG_FINISH_ERROR" 84 84 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'" $USER85 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 86 86 exit 1 87 87 fi -
zero-center/trunk/fuentes/install-files/usr/bin/zero-repos-update
r101 r1294 56 56 echo "________________________________________________________________________________" >> "$LOG" 57 57 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'" $USER58 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 59 59 } 60 60
Note: See TracChangeset
for help on using the changeset viewer.