#!/bin/bash

SETUP_LOCK_FILE="${containers_dir}libreportal/frontend/data/.setup_complete"

isSetupWizardComplete()
{
    [[ -f "$SETUP_LOCK_FILE" ]]
}

setupWizardMarkComplete()
{
    sudo touch "$SETUP_LOCK_FILE" 2>/dev/null
    sudo chown "$sudo_user_name:$sudo_user_name" "$SETUP_LOCK_FILE" 2>/dev/null
    sudo chmod 644 "$SETUP_LOCK_FILE" 2>/dev/null
}

setupWizardReset()
{
    sudo rm -f "$SETUP_LOCK_FILE" 2>/dev/null
}
