Development
This commit is contained in:
parent
9650e9e46c
commit
90c481d217
1 changed files with 5 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ DASHB_SCRIPT_FILE = SCRIPT_DIR / "do_dashboard_queue.sh"
|
||||||
HEALTH_FILE = SCRIPT_DIR / ".health"
|
HEALTH_FILE = SCRIPT_DIR / ".health"
|
||||||
SNAPSHOTS_DIR = SCRIPT_DIR / ".snapshots"
|
SNAPSHOTS_DIR = SCRIPT_DIR / ".snapshots"
|
||||||
CAPTIVE_QUEUE_FILE = SCRIPT_DIR / ".captive-queue"
|
CAPTIVE_QUEUE_FILE = SCRIPT_DIR / ".captive-queue"
|
||||||
|
DASH_DATA_DIR = COMPOSE_FILE.parent / "data"
|
||||||
|
|
||||||
# Dashboard systemd timer
|
# Dashboard systemd timer
|
||||||
DASHB_TIMER_NAME = f"{PRODUCT_NAME}-dashboard-queue"
|
DASHB_TIMER_NAME = f"{PRODUCT_NAME}-dashboard-queue"
|
||||||
|
|
@ -377,6 +378,9 @@ def create_dotfiles():
|
||||||
if not f.exists():
|
if not f.exists():
|
||||||
f.touch()
|
f.touch()
|
||||||
os.chown(f, uid, gid)
|
os.chown(f, uid, gid)
|
||||||
|
if not DASH_DATA_DIR.exists():
|
||||||
|
DASH_DATA_DIR.mkdir(parents=True)
|
||||||
|
os.chown(DASH_DATA_DIR, uid, gid)
|
||||||
|
|
||||||
|
|
||||||
# ===================================================================
|
# ===================================================================
|
||||||
|
|
@ -690,8 +694,8 @@ def main():
|
||||||
print(" Docker is already installed.")
|
print(" Docker is already installed.")
|
||||||
|
|
||||||
# docker-compose.yml ================================================
|
# docker-compose.yml ================================================
|
||||||
setup_docker_compose(reuse_config=reuse_config)
|
|
||||||
create_dotfiles()
|
create_dotfiles()
|
||||||
|
setup_docker_compose(reuse_config=reuse_config)
|
||||||
|
|
||||||
# Captive portal container ==========================================
|
# Captive portal container ==========================================
|
||||||
header("Captive Portal Container")
|
header("Captive Portal Container")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue