1. VectorLinux Core
  2. vinstall

Commits

Rodrigo Bistolfi  committed 1a0d87c

timezone: remove "/" from the start of the path

  • Participants
  • Parent commits adf106a
  • Branches master

Comments (0)

Files changed (1)

File vinstall/backend/timezone.py

View file
 import os
 
 
-ZONEINFO = "/usr/share/zoneinfo"
-LOCAL_TZ = "/etc/localtime"
+ZONEINFO = "usr/share/zoneinfo"
+LOCAL_TZ = "etc/localtime"
 TZ = """
 Africa/Abidjan
 Africa/Accra
     """
     if t not in ("UTC", "localtime"):
         raise RuntimeError("Time must be 'UTC' or 'localtime'")
-    conf = os.path.join(root, "/etc/hardwareclock")
+    conf = os.path.join(root, "etc/hardwareclock")
     with open(conf, "w") as hwc:
-        hwc.write("# /etc/hardwareclock - vinstall\n")
-        hwc.write(t)
+        hwc.write("# /etc/hardwareclock - vinstall\n%s" % t)