mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-12-19 11:12:18 +01:00
fix: ensure proper initialization and cleanup of known hosts in entrypoint script
This commit is contained in:
parent
7b075b3367
commit
93eda1c97c
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue