set timezone to etc/utc during setup

This commit is contained in:
m0duspwnens
2023-08-15 16:22:02 -04:00
parent d53489d674
commit b22776dc5a
2 changed files with 9 additions and 0 deletions

View File

@@ -2372,6 +2372,13 @@ set_redirect() {
;;
esac
}
set_timezone() {
logCmd "timedatectl set-timezone Etc/UTC"
}
so_add_user() {
local username=$1
local uid=$2

View File

@@ -576,6 +576,7 @@ if ! [[ -f $install_opt_file ]]; then
fi
if [[ $waitforstate ]]; then
set_timezone
touch /root/accept_changes
make_some_dirs
percentage=0
@@ -725,6 +726,7 @@ if ! [[ -f $install_opt_file ]]; then
systemctl restart salt-minion
verify_setup
else
set_timezone
touch /root/accept_changes
mkdir -p /opt/so
es_heapsize