core: Improve timezone detection
This commit is contained in:
parent
b6a47aa6c5
commit
156d6e46a1
@ -936,7 +936,12 @@ install_script() {
|
|||||||
systemctl -q stop ping-instances.service
|
systemctl -q stop ping-instances.service
|
||||||
fi
|
fi
|
||||||
NEXTID=$(pvesh get /cluster/nextid)
|
NEXTID=$(pvesh get /cluster/nextid)
|
||||||
timezone=$(cat /etc/timezone)
|
# Read timezone - fallback for Debian 13/Proxmox 9+ where /etc/timezone doesn't exist
|
||||||
|
if [[ -f /etc/timezone ]]; then
|
||||||
|
timezone=$(cat /etc/timezone)
|
||||||
|
else
|
||||||
|
timezone=$(timedatectl show --value --property=Timezone 2>/dev/null || echo "UTC")
|
||||||
|
fi
|
||||||
header_info
|
header_info
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user