set time zone (#1131)

Retrieve the time zone from Proxmox and configure the container to use the same time zone
This commit is contained in:
tteckster 2023-03-07 12:09:28 -05:00 committed by GitHub
parent c887a6bea1
commit 0e1a3ae998
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
169 changed files with 333 additions and 82 deletions

View file

@ -27,6 +27,7 @@ var_os="debian"
var_version="11"
NSAPP=$(echo ${APP,,} | tr -d ' ')
var_install="${NSAPP}-v5-install"
timezone=$(timedatectl | grep "Time zone" | awk '{print $3}')
INTEGER='^[0-9]+$'
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
@ -358,7 +359,8 @@ else
FEATURES="nesting=1"
fi
TEMP_DIR=$(mktemp -d)
pushd $TEMP_DIR >/dev/null
pushd $TEMP_DIR >/dev/null
export tz=$timezone
export DISABLEIPV6=$DISABLEIP6
export APPLICATION=$APP
export VERBOSE=$VERB