Browse Source

fix timezone

main
pvincent 1 month ago
parent
commit
a12537a81d
  1. 2
      lib/harden.sh

2
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

Loading…
Cancel
Save