fix: ensure proper initialization and cleanup of known hosts in entrypoint script

This commit is contained in:
Burnett01 2025-09-01 13:38:32 +00:00
parent 7b075b3367
commit 93eda1c97c

View file

@ -9,6 +9,7 @@ fi
# Initialize SSH and known hosts. # Initialize SSH and known hosts.
source ssh-init source ssh-init
source hosts-init
# Start the SSH agent and load key. # Start the SSH agent and load key.
source agent-start default source agent-start default
@ -34,4 +35,6 @@ sh -c "rsync $INPUT_SWITCHES -e '$RSH' $LOCAL_PATH $DSN:$INPUT_REMOTE_PATH"
# Clean up. # Clean up.
source agent-stop "$GITHUB_ACTION" source agent-stop "$GITHUB_ACTION"
source hosts-clear
exit 0