mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
set the timezone earlier in setup
This commit is contained in:
@@ -58,6 +58,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
set_timezone
|
||||||
# Preserve old setup/error logs
|
# Preserve old setup/error logs
|
||||||
[ -f "$error_log" ] && mv "$error_log" "$error_log.$(date +%Y-%m-%dT%H:%M:%S)"
|
[ -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)"
|
[ -f "$setup_log" ] && mv "$setup_log" "$setup_log.$(date +%Y-%m-%dT%H:%M:%S)"
|
||||||
@@ -576,7 +577,6 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $waitforstate ]]; then
|
if [[ $waitforstate ]]; then
|
||||||
set_timezone
|
|
||||||
touch /root/accept_changes
|
touch /root/accept_changes
|
||||||
make_some_dirs
|
make_some_dirs
|
||||||
percentage=0
|
percentage=0
|
||||||
@@ -726,7 +726,6 @@ if ! [[ -f $install_opt_file ]]; then
|
|||||||
systemctl restart salt-minion
|
systemctl restart salt-minion
|
||||||
verify_setup
|
verify_setup
|
||||||
else
|
else
|
||||||
set_timezone
|
|
||||||
touch /root/accept_changes
|
touch /root/accept_changes
|
||||||
mkdir -p /opt/so
|
mkdir -p /opt/so
|
||||||
es_heapsize
|
es_heapsize
|
||||||
|
|||||||
Reference in New Issue
Block a user