Created
September 21, 2011 15:41
-
-
Save tjl2/1232421 to your computer and use it in GitHub Desktop.
Changing localtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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