Fehler beim Installer in der Installprozedur ohne SU beseitigt

This commit is contained in:
Leon Gaultier 2014-04-05 22:05:02 +02:00
parent 4d3f5b8cfa
commit 1b4dcf8abd
2 changed files with 5 additions and 5 deletions

View File

@ -104,7 +104,7 @@ func_progressbar()
60)
echo -e -n " 100%" ;;
esac
sleep 0.05
sleep 0.07
done
echo -e "\e[m"
}
@ -119,7 +119,7 @@ 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
echo -e "\n\033[1;32mProgrammdatei wird nach $BIN kopiert\e[m"
cp calibre-autoupdate $BIN
sed -i "s/_-INC-_/${INC//\//\/}/g" $BIN"calibre-autoupdate"
sed -i "s/_-ETC-_/${ETC//\//\/}/g" $BIN"calibre-autoupdate"
@ -127,11 +127,11 @@ func_check_dir
sed -i "s/_-VERSION-_/${VERSION//\//\/}/g" $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
echo -e "\n\033[1;32mDie Header-Dateien werden nach $INC kopiert\e[m"
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
echo -e "\n\033[1;32mDie Konfigurationsdatei wird nach $ETC kopiert\e[m"
cp calibre-autoupdate.conf $ETC
sed -i "s/_-CALIBRE_INSTALL_LOCATION-_/${CALIBRE_INSTALL_LOCATION//\//\/}/g" $ETC"calibre-autoupdate.conf"
chmod 644 $ETC/calibre-autoupdate.conf

View File

@ -26,7 +26,7 @@ done
func_progressbar
if [ $ONLINE ]; then
echo -e "\n\033[32m Oh Wunder! Habe ein Netzwerk gefunden. Verbinde über Interface $INTERFACE,
was nicht heißt das es geht :-P";
was nicht heißt das es geht :-P\n";
if [[ $stat_1 -eq 200 && $stat_2 -eq 200 ]]; then
return 1
elif [[ $stat_1 -eq !200 ]]; then