prevent dockers from redownloading if we are updating soup to a branch

This commit is contained in:
m0duspwnens
2020-07-27 18:19:26 -04:00
parent f42a39ca69
commit 254dcdb2f0
3 changed files with 11 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
#version cannot be used elsewhere in this pillar as soup is grepping for it to determine if Salt needs to be patched
salt:
master:
version: 3001.1
version: 3001

View File

@@ -1,4 +1,4 @@
#version cannot be used elsewhere in this pillar as soup is grepping for it to determine if Salt needs to be patched
salt:
minion:
version: 3001.1
version: 3001

View File

@@ -225,11 +225,15 @@ upgrade_check_salt
echo "Making pillar changes"
pillar_changes
echo ""
echo "Cleaning up old dockers"
clean_dockers
echo ""
echo "Updating docker to $NEWVERSION"
update_dockers
if [ "$INSTALLEDVERSION" != "$NEWVERSION" ]; then
echo "Cleaning up old dockers"
clean_dockers
echo ""
echo "Updating docker to $NEWVERSION"
update_dockers
fi
echo ""
echo "Copying new code"
copy_new_files