mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 01:16:18 -05:00
Samba is installed and can be configured in the Controller.
This commit is contained in:
parent
0ceac364ec
commit
ce0cdd3a2e
15 changed files with 837 additions and 5 deletions
|
|
@ -77,6 +77,10 @@ async def lifespan(app: FastAPI):
|
|||
# Apply timezone from wrolpi.yaml to the system.
|
||||
from controller.lib.admin import apply_timezone_from_config
|
||||
apply_timezone_from_config()
|
||||
|
||||
# Apply Samba config if enabled.
|
||||
from controller.lib.samba import apply_samba_from_config
|
||||
apply_samba_from_config()
|
||||
else:
|
||||
# Drive may be mounted but controller.yaml may not exist yet (e.g., the system
|
||||
# was set up before the Controller was introduced). Create the marker file.
|
||||
|
|
@ -94,6 +98,9 @@ async def lifespan(app: FastAPI):
|
|||
|
||||
from controller.lib.admin import apply_timezone_from_config
|
||||
apply_timezone_from_config()
|
||||
|
||||
from controller.lib.samba import apply_samba_from_config
|
||||
apply_samba_from_config()
|
||||
else:
|
||||
logger.info("Primary drive not mounted - using default configuration")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue