From cf8742eff75d9eb77f170b84522369ab98d4d740 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 26 Sep 2023 04:05:58 +0300 Subject: [PATCH] try to run non interactivly --- kasmvnc/run.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kasmvnc/run.sh b/kasmvnc/run.sh index 0a3f883..89aec27 100644 --- a/kasmvnc/run.sh +++ b/kasmvnc/run.sh @@ -1,11 +1,14 @@ #!/usr/bin/env bash +# Set non-interactive and configure timezone +export DEBIAN_FRONTEND=noninteractive +if [[ ! -f /etc/timezone ]]; then + echo "Etc/UTC" | sudo tee /etc/timezone + sudo dpkg-reconfigure -f noninteractive tzdata +fi + # Check if desktop environment is installed if ! dpkg -s ${DESKTOP_ENVIRONMENT} &>/dev/null; then - if [[ ! -f /etc/timezone ]] && [[ -z "$TZ" ]]; then - echo "tzdata tzdata/Areas select Etc" | sudo debconf-set-selections - echo "tzdata tzdata/Zones/Etc select UTC" | sudo debconf-set-selections - fi sudo apt-get update DEBIAN_FRONTEND=noninteractive sudo apt-get install -y ${DESKTOP_ENVIRONMENT} else