mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
set timezone to etc/utc during setup
This commit is contained in:
@@ -2372,6 +2372,13 @@ set_redirect() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_timezone() {
|
||||||
|
|
||||||
|
logCmd "timedatectl set-timezone Etc/UTC"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
so_add_user() {
|
so_add_user() {
|
||||||
local username=$1
|
local username=$1
|
||||||
local uid=$2
|
local uid=$2
|
||||||
|
|||||||
@@ -576,6 +576,7 @@ 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
|
||||||
@@ -725,6 +726,7 @@ 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