Skip upgrade if letsencrypt is upgrading its certificates

This commit is contained in:
Bob Mottram 2018-06-09 10:23:04 +01:00
parent 9a150445e6
commit 83ea67971e
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ CURRENT_BRANCH=master
# clear temporary files
rm -rf /tmp/*
# Is letsencrypt updating its certificates?
# If yes then skip the upgrade to avoid any collisions
if [ -f ~/temp_renewletsencrypt.txt ]; then
exit 0
fi
UTILS_FILES="/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*"
for f in $UTILS_FILES
do