Changeset 2108 for zero-center/trunk
- Timestamp:
- Jul 6, 2016, 9:09:19 AM (5 years ago)
- Location:
- zero-center/trunk/fuentes/install-files/usr/bin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
zero-center/trunk/fuentes/install-files/usr/bin/zero-installer
r2053 r2108 85 85 echo "________________________________________________________________________________" >> /tmp/zero-installer.log 86 86 echo " " >> /tmp/zero-installer.log 87 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'" $USER87 su -c "notify-send -t 5000 -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 88 88 exit 0 89 89 else … … 93 93 echo "________________________________________________________________________________" >> /tmp/zero-installer.log 94 94 echo " " >> /tmp/zero-installer.log 95 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_UNINSTALLED /tmp/zero-installer.log'" $USER95 su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$NAME_PACK $MSG_FINISH_UNINSTALLED /tmp/zero-installer.log'" $USER 96 96 exit 1 97 97 fi … … 131 131 echo "________________________________________________________________________________" >> /tmp/zero-installer.log 132 132 echo " " >> /tmp/zero-installer.log 133 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'" $USER133 su -c "notify-send -t 5000 -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 134 134 else 135 135 echo "Zero-center-------Your package $2 has NOT been $FINISHED in your system" … … 138 138 echo "________________________________________________________________________________" >> /tmp/zero-installer.log 139 139 echo " " >> /tmp/zero-installer.log 140 su -c "notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$2 $MSG_FINISH_ERROR $FINISHED $MSG_FINISH_SYSTEM /tmp/zero-installer.log'" $USER140 su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$2 $MSG_FINISH_ERROR $FINISHED $MSG_FINISH_SYSTEM /tmp/zero-installer.log'" $USER 141 141 exit 1 142 142 fi … … 202 202 LANG=en apt-cache show $2 | grep -i Version 203 203 if [ "$?" != "0" ]; then 204 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'" $USER204 su -c "notify-send -t 5000 -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 205 205 echo "Your package $2 don't exists in your repositories, abort zero-installer command" 206 206 echo "Your package $2 don't exists in your repositories, abort zero-installer command" >> /tmp/zero-installer.log 207 #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'" $USER207 #su -c "notify-send -t 5000 -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 208 208 exit 1 209 209 fi -
zero-center/trunk/fuentes/install-files/usr/bin/zero-lliurex-axel
r1294 r2108 118 118 done 119 119 rm $2/$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"120 notify-send -t 5000 -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 normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$NAME_FILE $MSG_DONWLOADED $2"125 notify-send -t 5000 -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 normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $1"169 notify-send -t 5000 -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 normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$1 $MSG_DONWLOADED $2"174 notify-send -t 5000 -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
r1646 r2108 117 117 done 118 118 rm $2/$NAME_FILE* 119 notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $NAME_FILE"119 notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $NAME_FILE" 120 120 echo "Your downloading file $1 has been cancelled" 121 121 echo "" 122 122 exit 1 123 123 fi 124 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"124 notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$NAME_FILE $MSG_DONWLOADED $2" 125 125 echo "File $1 is downloaded in $2" 126 126 } … … 166 166 done 167 167 rm "$2"/"$3"* 168 notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $1"168 notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$MSG_CANCELLED $1" 169 169 echo "Your downloading file $1 has been cancelled" 170 170 echo "" 171 171 exit 1 172 172 fi 173 notify-send -t 2000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$1 $MSG_DONWLOADED $2"173 notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg "Zero-Downloader-Helper" "$1 $MSG_DONWLOADED $2" 174 174 echo "File $3 is downloaded in $2" 175 175 } -
zero-center/trunk/fuentes/install-files/usr/bin/zero-reinstall
r1294 r2108 68 68 echo "Zero-installer install the package $PACKAGE_NAME" 69 69 zero-installer install "$PACKAGE_NAME" 70 #Get zero-installer exit status 71 ERROR=$? 70 72 #Me guardo el fichero de los logs por si algo fallase o para revisarlo 71 73 cat $ZERO_LOG >> $INSTALL_LOG … … 73 75 #Testeamos si el paquete se ha instalado bien 74 76 TEST=$( dpkg-query -s $PACKAGE_NAME 2> /dev/null| grep Status | cut -d " " -f 4 ) 75 if [ "$TEST" = 'installed' ]; then77 if [ "$TEST" = 'installed' -a "$ERROR" -eq 0 ]; then 76 78 echo " ------------------- " >> $INSTALL_LOG 77 79 echo "Package $PACKAGE_NAME has been installed, Congratulations" 78 80 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 normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG'" $USER81 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 80 82 exit 0 81 83 else … … 83 85 echo "$MSG_FINISH_ERROR" 84 86 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 normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG'" $USER87 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 86 88 exit 1 87 89 fi -
zero-center/trunk/fuentes/install-files/usr/bin/zero-reinstall-list
r101 r2108 106 106 echo "Zero-installer install the package $i" 107 107 zero-installer install $i 108 #Get zero-installer exit status 109 ERROR=$? 108 110 #Me guardo el fichero de los logs por si algo fallase o para revisarlo 109 111 cat $ZERO_LOG >> $INSTALL_LOG … … 127 129 128 130 fgrep "is not in repository" "$INSTALL_LOG" 129 if [ "$?" == "0" ]; then131 if [ "$?" == "0" -o "$ERROR" -gt 0 ]; then 130 132 zenity --info --title="Zero-reinstaller" --text="$MSG_REVIEW1 $INSTALL_LOG. $MSG_REVIEW2 .$MSG_CONTACT" > /dev/null 2>&1 & 133 exit 1 131 134 else 132 135 zenity --info --title="Zero-reinstaller" --text="$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG" > /dev/null 2>&1 & -
zero-center/trunk/fuentes/install-files/usr/bin/zero-repos-update
r1294 r2108 56 56 echo "________________________________________________________________________________" >> "$LOG" 57 57 echo " " >> "$LOG" 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'" $USER58 su -c "notify-send -t 5000 -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.