Move setup-complete marker from /opt/so/conf to /opt/so/state

The setup-complete marker is a runtime-state file, not config, so move it
to /opt/so/state/setup-complete. Updates both writers (mark_setup_complete
in setup/so-functions and the upgrade-path state in minion/init.sls) and the
three readers (so-boot-highstate.service ConditionPathExists, boot_highstate.sls
enable gate, and the so-user_sync cron gate).
This commit is contained in:
Josh Patterson
2026-06-04 15:07:27 -04:00
parent f5d63f585e
commit cb3631da81
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -547,7 +547,7 @@ mark_setup_complete() {
# Writes the setup-complete marker. Salt's so-boot-highstate.service
# (boot-time oneshot) and the so-user_sync cron gate in
# salt/manager/sync_es_users.sls both key off this file.
local marker=/opt/so/conf/setup-complete
local marker=/opt/so/state/setup-complete
info "Marking setup as complete"
mkdir -p "$(dirname "$marker")"