mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-14 22:28:43 +02:00
cb3631da81
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).
15 lines
405 B
Desktop File
15 lines
405 B
Desktop File
[Unit]
|
|
Description=Security Onion boot-time highstate (runs once per boot)
|
|
After=salt-minion.service network-online.target docker.service
|
|
Wants=network-online.target docker.service
|
|
Requires=salt-minion.service
|
|
ConditionPathExists=/opt/so/state/setup-complete
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/bin/salt-call state.highstate -l info queue=True
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|