Compose Version detection implemented in Backup script

This commit is contained in:
DerLinkman
2022-08-22 10:24:38 +02:00
parent 6708059227
commit 925b220905
2 changed files with 26 additions and 14 deletions

View File

@@ -646,16 +646,16 @@ else
fi
fi
# echo -e "\e[32mChecking for newer update script...\e[0m"
# SHA1_1=$(sha1sum update.sh)
# git fetch origin #${BRANCH}
# git checkout origin/${BRANCH} update.sh
# SHA1_2=$(sha1sum update.sh)
# if [[ ${SHA1_1} != ${SHA1_2} ]]; then
# echo "update.sh changed, please run this script again, exiting."
# chmod +x update.sh
# exit 2
# fi
echo -e "\e[32mChecking for newer update script...\e[0m"
SHA1_1=$(sha1sum update.sh)
git fetch origin #${BRANCH}
git checkout origin/${BRANCH} update.sh
SHA1_2=$(sha1sum update.sh)
if [[ ${SHA1_1} != ${SHA1_2} ]]; then
echo "update.sh changed, please run this script again, exiting."
chmod +x update.sh
exit 2
fi
if [ ! $FORCE ]; then
read -r -p "Are you sure you want to update mailcow: dockerized? All containers will be stopped. [y/N] " response