From 43ec12f4f0a87db8440c20759bfe2e2a00bb4aa3 Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Fri, 8 Jul 2022 13:49:33 +0200 Subject: [PATCH] Readded (again) the new update script check... --- update.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/update.sh b/update.sh index 3e48fb1e..c7c958a4 100755 --- a/update.sh +++ b/update.sh @@ -652,16 +652,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 [[ -f mailcow.conf ]]; then source mailcow.conf