mirror of https://github.com/SystemRage/py-kms.git
add missing setting to timzeone.
This commit is contained in:
parent
a564822e26
commit
2979e78311
|
@ -50,6 +50,9 @@ def change_tz():
|
||||||
loggersrv.info("Setting timzeone to %s" % tz )
|
loggersrv.info("Setting timzeone to %s" % tz )
|
||||||
os.remove('/etc/localtime')
|
os.remove('/etc/localtime')
|
||||||
os.symlink(os.path.join('/usr/share/zoneinfo/', tz), '/etc/localtime')
|
os.symlink(os.path.join('/usr/share/zoneinfo/', tz), '/etc/localtime')
|
||||||
|
f = open("/etc/timezone", "w")
|
||||||
|
f.write(tz)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
|
|
Loading…
Reference in New Issue