Merge branch 'bugfix/KASM-6521_deb_persist_tz_on_init' into 'develop'

KASM-6521 Persist initial tz setting during installation on apt systems

Closes KASM-6521

See merge request kasm-technologies/internal/workspaces-core-images!246
This commit is contained in:
Richard Koliser 2024-12-04 17:36:39 +00:00
commit 8d94df5afc

View File

@ -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