fix(nexus): guard nexus.service with ConditionPathExists

A reboot before the first deploy would leave the enabled unit in failed
state; the condition keeps it inert until start.sh exists (same guard as
nexus-worker.service).
This commit is contained in:
2026-06-11 14:54:47 +02:00
parent 2152683397
commit afd0a4ea35
+3
View File
@@ -122,6 +122,9 @@ cat >/etc/systemd/system/nexus.service <<EOF
Description=nexus — Family Knowledge Hub Description=nexus — Family Knowledge Hub
After=network-online.target After=network-online.target
Wants=network-online.target Wants=network-online.target
# Skeleton-safe: only startable once the first deploy shipped the artifact
# (otherwise a reboot before first deploy leaves the unit in failed state).
ConditionPathExists=$CURRENT_DIR/start.sh
[Service] [Service]
Type=simple Type=simple