diff options
author | Daniil Baturin <daniil@baturin.org> | 2013-12-18 04:05:39 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2013-12-18 04:05:39 +0100 |
commit | 611d88001e64f671751a2003934806fb598baf29 (patch) | |
tree | 4f7b79dce03dcf61af7fee8c975d28df8c9d3486 | |
parent | 69c69ce447463acfc7d7256fcc303b724d38456d (diff) | |
download | vyatta-cfg-system-611d88001e64f671751a2003934806fb598baf29.tar.gz vyatta-cfg-system-611d88001e64f671751a2003934806fb598baf29.zip |
Bug #51: update /etc/timezone when timezone changes.
-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 |