diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/system/time-zone/node.def | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/system/time-zone/node.def b/templates/system/time-zone/node.def index ce76c8a4..def367f4 100644 --- a/templates/system/time-zone/node.def +++ b/templates/system/time-zone/node.def @@ -16,11 +16,13 @@ update: LTF="/usr/share/zoneinfo" esac if [ -f "$LTF" ]; then sudo ln -fs $LTF /etc/localtime + sudo sh -c "echo $VAR(@) > /etc/timezone" else echo "Invalid timezone" exit 1 fi -delete:expression: "sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime" +delete: sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime + sudo sh -c "echo UTC > /etc/timezone" allowed: shopt -s nullglob word=${COMP_WORDS[$COMP_CWORD]} if [[ $word == */* ]]; then |