mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-22 17:03:07 +01:00
copy_new_files usage consistent across soup and hotfixapply scripts
This commit is contained in:
@@ -21,7 +21,6 @@ UPDATE_DIR=/tmp/sogh/securityonion
|
||||
INSTALLEDVERSION=$(cat /etc/soversion)
|
||||
POSTVERSION=$INSTALLEDVERSION
|
||||
INSTALLEDSALTVERSION=$(salt --versions-report | grep Salt: | awk {'print $2'})
|
||||
DEFAULT_SALT_DIR=/opt/so/saltstack/default
|
||||
BATCHSIZE=5
|
||||
SOUP_LOG=/root/soup.log
|
||||
WHATWOULDYOUSAYYAHDOHERE=soup
|
||||
@@ -714,9 +713,7 @@ upgrade_check_salt
|
||||
|
||||
if [[ $is_hotfix ]]; then
|
||||
echo "Applying $HOTFIXVERSION"
|
||||
cd $UPDATE_DIR
|
||||
copy_new_files
|
||||
cd /tmp
|
||||
echo ""
|
||||
update_version
|
||||
salt-call state.highstate -l info queue=True
|
||||
@@ -787,7 +784,6 @@ else
|
||||
echo ""
|
||||
echo "Copying new Security Onion code from $UPDATE_DIR to $DEFAULT_SALT_DIR."
|
||||
copy_new_files
|
||||
cd /tmp
|
||||
echo ""
|
||||
update_version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user