#!/bin/bash SETUP_LOCK_FILE="${containers_dir}libreportal/frontend/data/.setup_complete" isSetupWizardComplete() { [[ -f "$SETUP_LOCK_FILE" ]] } setupWizardMarkComplete() { # .setup_complete lives in the docker-install-owned frontend/data -> runFileOp # (created as that user; no root, no chown). runFileOp touch "$SETUP_LOCK_FILE" 2>/dev/null runFileOp chmod 644 "$SETUP_LOCK_FILE" 2>/dev/null } setupWizardReset() { runFileOp rm -f "$SETUP_LOCK_FILE" 2>/dev/null }