commit c7bae1c299e7395db465ecd4d89a097873c3b238 parent dda3bd17a3a2a4f75764b492d927cc3198fbb549 Author: Florian Dold <dold@taler.net> Date: Fri, 31 Jul 2026 15:47:58 +0200 tolerate a missing known_hosts file in test.sh ssh-keygen -R fails when the file does not exist, which aborted the script under 'set -e' on a machine that has never used ssh. Diffstat:
| M | test.sh | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test.sh b/test.sh @@ -15,8 +15,9 @@ podman run \ # Print to log that container is running podman ps -# Clear out fingerprint from any past runs -ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[127.0.0.1]:8022" +# Clear out fingerprint from any past runs. The container gets fresh host +# keys every time. Tolerate the file not existing yet. +ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[127.0.0.1]:8022" || true # Run our playbook(s) ansible-playbook \