mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-22 21:45:16 +00:00
core: Improve timezone detection
This commit is contained in:
@@ -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)
|
||||||
|
# Read timezone - fallback for Debian 13/Proxmox 9+ where /etc/timezone doesn't exist
|
||||||
|
if [[ -f /etc/timezone ]]; then
|
||||||
timezone=$(cat /etc/timezone)
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user