#!/bin/bash # Resolved on call, not at source time: this file can be sourced by the lazy # loader before paths.sh has run, and a source-time expansion would bake an # empty root into an absolute-looking path. setupLockFile() { printf '%s' "$(webuiDir)/frontend/data/.setup_complete" } isSetupWizardComplete() { [[ -f "$(setupLockFile)" ]] } setupWizardMarkComplete() { # .setup_complete lives in the docker-install-owned frontend/data -> runFileOp # (created as that user; no root, no chown). runFileOp touch "$(setupLockFile)" 2>/dev/null runFileOp chmod 644 "$(setupLockFile)" 2>/dev/null } setupWizardReset() { runFileOp rm -f "$(setupLockFile)" 2>/dev/null }