From b571cbfee6fdc90eb65421466c95e3ff74f88352 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 11 Mar 2025 14:58:55 +0100 Subject: [PATCH] add timezone check in install.func --- misc/alpine-install.func | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/alpine-install.func b/misc/alpine-install.func index f0f15ea..56d54f2 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -175,6 +175,11 @@ motd_ssh() { fi } +# Validate Timezone for some LXC's +validate_tz() { + [[ -f "/usr/share/zoneinfo/$1" ]] +} + # This function customizes the container and enables passwordless login for the root user customize() { if [[ "$PASSWORD" == "" ]]; then