fix timezone

This commit is contained in:
pvincent
2024-04-08 12:14:22 +04:00
parent b1d23be151
commit a12537a81d
+1 -1
View File
@@ -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