From 316ac0be280624eef790ea1f97e6325d11efea82 Mon Sep 17 00:00:00 2001 From: Jonathan Rich Date: Tue, 26 Nov 2024 11:56:48 -0500 Subject: [PATCH] KASM-6521 Persist initial tz setting during installation on apt systems --- src/ubuntu/install/tools/install_tools.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ubuntu/install/tools/install_tools.sh b/src/ubuntu/install/tools/install_tools.sh index 85cf56e..97b8eae 100644 --- a/src/ubuntu/install/tools/install_tools.sh +++ b/src/ubuntu/install/tools/install_tools.sh @@ -33,7 +33,11 @@ elif [ "${DISTRO}" == "alpine" ]; then else apt-get update # Update tzdata noninteractive (otherwise our script is hung on user input later). - DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata + ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime + DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata + # Debian (KasmOS) requires a reconfigure because tzdata is already installed + # On Ubuntu, this is a no-op + dpkg-reconfigure --frontend noninteractive tzdata # software-properties is removed from kali-rolling if grep -q "kali-rolling" /etc/os-release; then