(simatec) Fix Update Error

This commit is contained in:
simatec 2024-07-12 23:31:06 +02:00
parent d7ac8c3fb7
commit 4296d874d0
2 changed files with 12 additions and 1 deletions

View file

@ -264,7 +264,7 @@ elif [ -f $installPth/.configDone ]; then
echo "${purple}${HLINE}${HLINE_SMALL}${normal}" echo "${purple}${HLINE}${HLINE_SMALL}${normal}"
echo echo
done done
touch $installPth/.update
bash $installPth/update.sh && exit 0 bash $installPth/update.sh && exit 0
fi fi
done done

View file

@ -148,6 +148,17 @@ configPth="$installPth/config"
etcPth="/var/lib/docker/volumes/piler-docker_piler_etc/_data" etcPth="/var/lib/docker/volumes/piler-docker_piler_etc/_data"
buildPth="$installPth/build" buildPth="$installPth/build"
if [ ! -f $installPth/.update ]; then
echo
echo "${redBold}${HLINE}"
echo "${redBold} Please restart the update with installer.sh"
echo "${redBold}${HLINE}${normal}"
echo
exit 1
else
rm $installPth/.update
fi
if [ -f $installPth/docker-compose.yml ]; then if [ -f $installPth/docker-compose.yml ]; then
rm $installPth/docker-compose.yml rm $installPth/docker-compose.yml
fi fi