Replace salt code on a saltstack update

This commit is contained in:
Mike Reeves
2022-04-12 11:55:45 -04:00
parent 081d7e3a09
commit c1824e9f17

View File

@@ -34,9 +34,9 @@ copy_new_files() {
VERSION=$(cat VERSION) VERSION=$(cat VERSION)
git checkout $BRANCH git checkout $BRANCH
# We need to overwrite if there is a repo file # We need to overwrite if there is a repo file
if [ -d /opt/so/repo ]; then if [ -d /opt/so/repo ]; then
tar -czf /opt/so/repo/"$VERSION".tar.gz -C "$(pwd)/.." . tar -czf /opt/so/repo/"$VERSION".tar.gz -C "$(pwd)/.." .
fi fi
rsync -a salt $default_salt_dir/ rsync -a salt $default_salt_dir/
rsync -a pillar $default_salt_dir/ rsync -a pillar $default_salt_dir/
chown -R socore:socore $default_salt_dir/salt chown -R socore:socore $default_salt_dir/salt