fix timezone
This commit is contained in:
+1
-1
@@ -139,7 +139,7 @@ function set_timezone_if_defined {
|
|||||||
if [[ -f "/usr/share/zoneinfo/$timezone" ]]; then
|
if [[ -f "/usr/share/zoneinfo/$timezone" ]]; then
|
||||||
echo "set timezone to $timezone ..."
|
echo "set timezone to $timezone ..."
|
||||||
sudo ln -fs "/usr/share/zoneinfo/$timezone" /etc/localtime
|
sudo ln -fs "/usr/share/zoneinfo/$timezone" /etc/localtime
|
||||||
dpkg-reconfigure -f noninteractive tzdata
|
sudo dpkg-reconfigure -f noninteractive tzdata
|
||||||
echo OK
|
echo OK
|
||||||
else
|
else
|
||||||
echoerr "unkown timezone: <$timezone>, please edit <$HARDEN_CONFIGFILE> and change to a correct value" && exit 98
|
echoerr "unkown timezone: <$timezone>, please edit <$HARDEN_CONFIGFILE> and change to a correct value" && exit 98
|
||||||
|
|||||||
Reference in New Issue
Block a user