Progressbar in diversen Prozeduren eingebaut
This commit is contained in:
		| @@ -120,19 +120,22 @@ func_check_dir | ||||
|     if [ -w "$BIN" ]; then | ||||
| 	echo -e "\n\033[1;34mDer Calibre-Autoupdater wird nun unter $UPDATER_INSTALL_LOCATION installiert...\e[m"; | ||||
| 	echo -e "\n\033[1;32mProgrammdatei wird nach $BIN kopiert\e[m"; sleep 3 | ||||
| 	cp -v calibre-autoupdate $BIN | ||||
| 	cp calibre-autoupdate $BIN | ||||
| 	sed -i "s/_-INC-_/${INC//\//\/}/g" $BIN"calibre-autoupdate" | ||||
|         sed -i "s/_-ETC-_/${ETC//\//\/}/g" $BIN"calibre-autoupdate" | ||||
|         sed -i "s/_-BIN-_/${BIN//\//\/}/g" $BIN"calibre-autoupdate" | ||||
| 	sed -i "s/_-VERSION-_/${VERSION//\//\/}/g" $BIN"calibre-autoupdate" | ||||
| 	chmod -v 755 $BIN/calibre-autoupdate | ||||
| 	chmod 755 $BIN/calibre-autoupdate | ||||
| 	func_progressbar | ||||
| 	echo -e "\n\033[1;32mDie Header-Dateien werden nach $INC kopiert\e[m"; sleep 3 | ||||
| 	cp -v calibre-autoupdate.h calibre-autoupdate_checks.h $INC | ||||
| 	chmod -v 644 $INC/calibre-autoupdate.h $INC/calibre-autoupdate_checks.h | ||||
| 	cp calibre-autoupdate.h calibre-autoupdate_checks.h $INC | ||||
| 	chmod 644 $INC/calibre-autoupdate.h $INC/calibre-autoupdate_checks.h | ||||
| 	func_progressbar | ||||
| 	echo -e "\n\033[1;32mDie Konfigurationsdatei wird nach $ETC kopiert\e[m"; sleep 3 | ||||
| 	cp -v calibre-autoupdate.conf $ETC | ||||
| 	cp calibre-autoupdate.conf $ETC | ||||
| 	sed -i "s/_-CALIBRE_INSTALL_LOCATION-_/${CALIBRE_INSTALL_LOCATION//\//\/}/g" $ETC"calibre-autoupdate.conf" | ||||
| 	chmod -v 644 $ETC/calibre-autoupdate.conf | ||||
| 	chmod 644 $ETC/calibre-autoupdate.conf | ||||
| 	func_progressbar | ||||
| 	 | ||||
|     else	     	      | ||||
| 	echo -e "\n\033[1;34mDu hast kein Schreibrecht auf $UPDATER_INSTALL_LOCATION, daher wird SUDO versucht zu verwenden...\e[m"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user