mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Setting system timezone using Controller.
This commit is contained in:
parent
b1db71f04a
commit
ccc6cf78d3
8 changed files with 390 additions and 2 deletions
|
|
@ -68,6 +68,10 @@ async def lifespan(app: FastAPI):
|
|||
print("Loaded configuration from drive")
|
||||
else:
|
||||
print("Using default configuration (no controller.yaml found)")
|
||||
|
||||
# Apply timezone from wrolpi.yaml to the system.
|
||||
from controller.lib.admin import apply_timezone_from_config
|
||||
apply_timezone_from_config()
|
||||
else:
|
||||
print("Primary drive not mounted - using default configuration")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue