From a12537a81dea02123f018a69e18d79b1ae6defb2 Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 8 Apr 2024 12:14:22 +0400 Subject: [PATCH] fix timezone --- lib/harden.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/harden.sh b/lib/harden.sh index fc0f6e5..699b520 100755 --- a/lib/harden.sh +++ b/lib/harden.sh @@ -139,7 +139,7 @@ function set_timezone_if_defined { if [[ -f "/usr/share/zoneinfo/$timezone" ]]; then echo "set timezone to $timezone ..." sudo ln -fs "/usr/share/zoneinfo/$timezone" /etc/localtime - dpkg-reconfigure -f noninteractive tzdata + sudo dpkg-reconfigure -f noninteractive tzdata echo OK else echoerr "unkown timezone: <$timezone>, please edit <$HARDEN_CONFIGFILE> and change to a correct value" && exit 98