Skip to content

Instantly share code, notes, and snippets.

@tjl2
Created September 21, 2011 15:41
Show Gist options
  • Save tjl2/1232421 to your computer and use it in GitHub Desktop.
Save tjl2/1232421 to your computer and use it in GitHub Desktop.
Changing localtime
# Note that this is for the GB timezone. Look in
# /usr/share/zoneinfo for your relevant file.
service "vixie-cron"
service "sysklogd"
service "nginx"
link "/etc/localtime" do
to "/usr/share/zoneinfo/GB"
notifies :restart, resources(:service => ["vixie-cron", "sysklogd", "nginx"]), :delayed
not_if "readlink /etc/localtime | grep -q 'GB$'"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment