mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-09-23 20:05:29 +00:00
fix: ensure proper initialization and cleanup of known hosts in entrypoint script
This commit is contained in:
@@ -9,6 +9,7 @@ fi
|
||||
|
||||
# Initialize SSH and known hosts.
|
||||
source ssh-init
|
||||
source hosts-init
|
||||
|
||||
# Start the SSH agent and load key.
|
||||
source agent-start default
|
||||
@@ -34,4 +35,6 @@ sh -c "rsync $INPUT_SWITCHES -e '$RSH' $LOCAL_PATH $DSN:$INPUT_REMOTE_PATH"
|
||||
|
||||
# Clean up.
|
||||
source agent-stop "$GITHUB_ACTION"
|
||||
source hosts-clear
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user