From 02f4cd99263c078f2f757fc7bb91e71125b5c270 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 12 Apr 2022 12:15:22 -0400 Subject: [PATCH] Replace salt code on a saltstack update --- salt/common/tools/sbin/so-saltstack-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-saltstack-update b/salt/common/tools/sbin/so-saltstack-update index debbf42f2..81b00ace5 100755 --- a/salt/common/tools/sbin/so-saltstack-update +++ b/salt/common/tools/sbin/so-saltstack-update @@ -31,8 +31,8 @@ copy_new_files() { # Copy new files over to the salt dir cd /tmp/sogh/securityonion - VERSION=$(cat VERSION) git checkout $BRANCH + VERSION=$(cat VERSION) # We need to overwrite if there is a repo file if [ -d /opt/so/repo ]; then tar -czf /opt/so/repo/"$VERSION".tar.gz -C "$(pwd)/.." .