mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
add back common soup_scripts state
This commit is contained in:
24
salt/common/soup_scripts.sls
Normal file
24
salt/common/soup_scripts.sls
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
remove_common_soup:
|
||||||
|
file.absent:
|
||||||
|
- name: /opt/so/saltstack/default/salt/common/tools/sbin/soup
|
||||||
|
|
||||||
|
remove_common_so-firewall:
|
||||||
|
file.absent:
|
||||||
|
- name: /opt/so/saltstack/default/salt/common/tools/sbin/so-firewall
|
||||||
|
|
||||||
|
# Sync some Utilities
|
||||||
|
soup_scripts:
|
||||||
|
file.recurse:
|
||||||
|
- name: /usr/sbin
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- file_mode: 755
|
||||||
|
- source: salt://common/tools/sbin
|
||||||
|
|
||||||
|
soup_manager_scripts:
|
||||||
|
file.recurse:
|
||||||
|
- name: /usr/sbin
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- file_mode: 755
|
||||||
|
- source: salt://manager/tools/sbin
|
||||||
@@ -795,12 +795,14 @@ verify_latest_update_script() {
|
|||||||
else
|
else
|
||||||
echo "You are not running the latest soup version. Updating soup and its components. This might take multiple runs to complete."
|
echo "You are not running the latest soup version. Updating soup and its components. This might take multiple runs to complete."
|
||||||
cp $UPDATE_DIR/salt/common/tools/sbin/* $DEFAULT_SALT_DIR/salt/common/tools/sbin/.
|
cp $UPDATE_DIR/salt/common/tools/sbin/* $DEFAULT_SALT_DIR/salt/common/tools/sbin/.
|
||||||
cp $UPDATE_DIR/salt/common/tools/sbin/* /usr/sbin/.
|
#cp $UPDATE_DIR/salt/common/tools/sbin/* /usr/sbin/.
|
||||||
cp $UPDATE_DIR/salt/manager/tools/sbin/* $DEFAULT_SALT_DIR/salt/manager/tools/sbin/.
|
cp $UPDATE_DIR/salt/manager/tools/sbin/* $DEFAULT_SALT_DIR/salt/manager/tools/sbin/.
|
||||||
cp $UPDATE_DIR/salt/manager/tools/sbin/* /usr/sbin/.
|
#cp $UPDATE_DIR/salt/manager/tools/sbin/* /usr/sbin/.
|
||||||
|
|
||||||
rm -f $DEFAULT_SALT_DIR/salt/common/tools/sbin/soup
|
#rm -f $DEFAULT_SALT_DIR/salt/common/tools/sbin/soup
|
||||||
rm -f $DEFAULT_SALT_DIR/salt/common/tools/sbin/so-firewall
|
#rm -f $DEFAULT_SALT_DIR/salt/common/tools/sbin/so-firewall
|
||||||
|
|
||||||
|
salt-call state.apply common.soup_scripts queue=True -linfo --file-root=$UPDATE_DIR/salt --local
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "The soup script has been modified. Please run soup again to continue the upgrade."
|
echo "The soup script has been modified. Please run soup again to continue the upgrade."
|
||||||
|
|||||||
Reference in New Issue
Block a user