mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
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:
parent
c887a6bea1
commit
0e1a3ae998
169 changed files with 333 additions and 82 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue