Fix hermes-install: add set -euo pipefail so failures don't self-mark done
Without it, a failed curl|bash (network not up yet on a very early boot, or any other transient failure) fell through to the final `touch .hermes-installed` line regardless - permanently marking the install "done" via the ConditionPathExists gate even though it never completed. Confirmed live on hl-fwdesk: journalctl --list-boots showed a 2-second first boot, and the marker's birth time matched exactly the end of that boot - the real boot then skipped the service entirely because the marker already existed, leaving `hermes` never installed. pipefail specifically matters here: plain -e alone only checks the last command in `curl | bash`, so a failing curl with a trivially successful (empty-input) bash would not have been caught without it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5ea64e88d5
commit
ff752cb803
1 file changed
+1
@@ -204,6 +204,7 @@ in
|
|||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
|
set -euo pipefail
|
||||||
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh \
|
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh \
|
||||||
| ${pkgs.bash}/bin/bash -s -- --non-interactive --skip-setup
|
| ${pkgs.bash}/bin/bash -s -- --non-interactive --skip-setup
|
||||||
touch ${stateDir}/.hermes-installed
|
touch ${stateDir}/.hermes-installed
|
||||||
|
|||||||
Reference in new issue
Block a user