- copy_build_context: rsync/cp/rm -> runFileOp (writes the deployed tree AS the container owner with --no-owner); drop the now-redundant runSystem chown. - setup_lock: .setup_complete is in the docker-install-owned frontend/data -> runFileOp touch/chmod/rm (drop the chown). - tags_processor_docker_installation 'user:' enable + update_compose_yml jail.local -> runFileOp (deployed compose/config under containers). - crontab_clear: clear the manager's own crontab via runInstallOp. - reinstall: cp init.sh to /root -> runSystem (genuine root path). - create_successful_run_file: drop the pointless sudo echo -> runInstallWrite to /docker/run.txt. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
22 lines
495 B
Bash
22 lines
495 B
Bash
#!/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
|
|
}
|