Skip to content

Commit 260b8d7

Browse files
committed
Docker installatons read timezone and they will fail if this doesn't exist. This is often the case with some minimal Debian/Ubuntu installations.
1 parent 9aa1b87 commit 260b8d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/modules/functions/set_runtime_variables.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ function set_runtime_variables() {
5151
[[ -f /etc/armbian-release ]] && source /etc/armbian-release && ARMBIAN="Armbian $VERSION $IMAGE_TYPE"
5252
[[ -f /etc/armbian-distribution-status ]] && DISTRO_STATUS="/etc/armbian-distribution-status"
5353

54+
# Docker installatons read timezone and they will fail if this doesn't exist. This is often the case with some minimal Debian/Ubuntu installations.
55+
if [[ ! -f /etc/timezone ]]; then
56+
echo "America/New_York" | sudo tee /etc/timezone
57+
fi
58+
5459
DISTRO=$(lsb_release -is)
5560
DISTROID=$(lsb_release -sc 2> /dev/null || grep "VERSION=" /etc/os-release | grep -oP '(?<=\().*(?=\))')
5661
KERNELID=$(uname -r)

0 commit comments

Comments
 (0)