mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
use sed instead of echo
This commit is contained in:
@@ -719,8 +719,7 @@ up_to_2.3.100() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Adding receiver to assigned_hostgroups.local.map.yaml"
|
echo "Adding receiver to assigned_hostgroups.local.map.yaml"
|
||||||
grep -qxF " receiver:" /opt/so/saltstack/local/salt/firewall/assigned_hostgroups.local.map.yaml || echo " receiver:" >> /opt/so/saltstack/local/salt/firewall/assigned_hostgroups.local.map.yaml
|
grep -qxF " receiver:" /opt/so/saltstack/local/salt/firewall/assigned_hostgroups.local.map.yaml || sed -i -e '$a receiver:' /opt/so/saltstack/local/salt/firewall/assigned_hostgroups.local.map.yaml
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
verify_upgradespace() {
|
verify_upgradespace() {
|
||||||
|
|||||||
Reference in New Issue
Block a user