mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-22 00:43:09 +01:00
Correct so-import-pcap wrapping; add so-pcap-import alias for so-import-pcap; prompt to reboot after changing IP address on manager; ensure all tools have exec bit set
This commit is contained in:
6
salt/common/tools/sbin/so-ip-update
Normal file → Executable file
6
salt/common/tools/sbin/so-ip-update
Normal file → Executable file
@@ -50,9 +50,9 @@ if [ "$CONTINUE" == "y" ]; then
|
||||
|
||||
echo "The IP has been changed from $OLD_IP to $NEW_IP."
|
||||
|
||||
if [ -z "$SKIP_STATE_APPLY" ]; then
|
||||
echo "Re-applying salt states."
|
||||
salt-call state.highstate queue=True
|
||||
read -n 1 -p "The system must reboot to ensure all services have restarted with the new configuration. Reboot now? (y/N)" CONTINUE
|
||||
if [ "$CONTINUE" == "y" ]; then
|
||||
reboot
|
||||
fi
|
||||
else
|
||||
echo "Exiting without changes."
|
||||
|
||||
Reference in New Issue
Block a user