mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 03:32:53 +01:00
Merge branch '2.4/dev' of https://github.com/Security-Onion-Solutions/securityonion into guifixes
This commit is contained in:
@@ -23,7 +23,7 @@ if [[ $# -lt 1 ]]; then
|
|||||||
echo " accept: Accepts a new key and adds the minion files"
|
echo " accept: Accepts a new key and adds the minion files"
|
||||||
echo " delete: Removes the key and deletes the minion files"
|
echo " delete: Removes the key and deletes the minion files"
|
||||||
echo " reject: Rejects a key"
|
echo " reject: Rejects a key"
|
||||||
echo " test: Ingest test data"
|
echo " test: Perform minion test"
|
||||||
echo ""
|
echo ""
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -74,8 +74,6 @@ so-idh:
|
|||||||
- file: opencanary_config
|
- file: opencanary_config
|
||||||
- require:
|
- require:
|
||||||
- file: opencanary_config
|
- file: opencanary_config
|
||||||
- extra_hosts:
|
|
||||||
- {{ GLOBALS.manager }}:{{ GLOBALS.manager_ip }}
|
|
||||||
|
|
||||||
append_so-idh_so-status.conf:
|
append_so-idh_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Preserve old setup/error logs
|
||||||
|
[ -f "$error_log" ] && mv "$error_log" "$error_log.$(date +%Y-%m-%dT%H:%M:%S)"
|
||||||
|
[ -f "$setup_log" ] && mv "$setup_log" "$setup_log.$(date +%Y-%m-%dT%H:%M:%S)"
|
||||||
|
|
||||||
# Let's see what OS we are dealing with here
|
# Let's see what OS we are dealing with here
|
||||||
detect_os
|
detect_os
|
||||||
|
|
||||||
@@ -134,9 +138,7 @@ title "Checking to see if install has run before"
|
|||||||
if [[ -f /root/accept_changes ]]; then
|
if [[ -f /root/accept_changes ]]; then
|
||||||
is_reinstall=true
|
is_reinstall=true
|
||||||
whiptail_reinstall
|
whiptail_reinstall
|
||||||
info "Old setup detected. Moving the last setup.log to setup.log.bak"
|
info "Old setup detected. Preparing for reinstallation."
|
||||||
mv "$setup_log" "$setup_log.bak"
|
|
||||||
[ -f "$error_log" ] && mv "$error_log" "$error_log.bak"
|
|
||||||
reinstall_init
|
reinstall_init
|
||||||
reset_proxy
|
reset_proxy
|
||||||
fi
|
fi
|
||||||
@@ -267,7 +269,7 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
if (whiptail_you_sure); then
|
if (whiptail_you_sure); then
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
error "User cancelled setup."
|
info "User cancelled setup."
|
||||||
whiptail_cancel
|
whiptail_cancel
|
||||||
fi
|
fi
|
||||||
# If this is an analyst install lets streamline the process.
|
# If this is an analyst install lets streamline the process.
|
||||||
|
|||||||
Reference in New Issue
Block a user