Skip to content

Commit 127390c

Browse files
authored
Alpine-Install (core) add timezone (tz) check (#3057)
1 parent d1528d4 commit 127390c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

misc/alpine-install.func

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ motd_ssh() {
179179
fi
180180
}
181181

182+
# Validate Timezone for some LXC's
183+
validate_tz() {
184+
[[ -f "/usr/share/zoneinfo/$1" ]]
185+
}
186+
182187
# This function customizes the container and enables passwordless login for the root user
183188
customize() {
184189
if [[ "$PASSWORD" == "" ]]; then

0 commit comments

Comments
 (0)