mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Replace salt code on a saltstack update
This commit is contained in:
@@ -31,8 +31,8 @@ copy_new_files() {
|
|||||||
|
|
||||||
# Copy new files over to the salt dir
|
# Copy new files over to the salt dir
|
||||||
cd /tmp/sogh/securityonion
|
cd /tmp/sogh/securityonion
|
||||||
VERSION=$(cat VERSION)
|
|
||||||
git checkout $BRANCH
|
git checkout $BRANCH
|
||||||
|
VERSION=$(cat VERSION)
|
||||||
# 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)/.." .
|
||||||
|
|||||||
Reference in New Issue
Block a user