mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
[fix] Only chmod files if they exist
This commit is contained in:
@@ -1258,8 +1258,8 @@ set_initial_firewall_policy() {
|
|||||||
|
|
||||||
set_main_ip
|
set_main_ip
|
||||||
|
|
||||||
chmod +x /opt/so/saltstack/pillar/data/addtotab.sh
|
if [ -f /opt/so/saltstack/pillar/data/addtotab.sh ]; then chmod +x /opt/so/saltstack/pillar/data/addtotab.sh; fi
|
||||||
chmod +x /opt/so/saltstack/pillar/firewall/addfirewall.sh
|
if [ -f /opt/so/saltstack/pillar/firewall/addfirewall.sh ]; then chmod +x /opt/so/saltstack/pillar/firewall/addfirewall.sh; fi
|
||||||
|
|
||||||
case "$install_type" in
|
case "$install_type" in
|
||||||
'MASTER')
|
'MASTER')
|
||||||
|
|||||||
Reference in New Issue
Block a user