From 9bbc8c959edc9eaab03f846f0016cd669eca45f8 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 26 Sep 2024 20:18:40 -0700 Subject: [PATCH] Using -p to copy file state i think --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 96f081a..c8dad6a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,7 @@ if [[ "$INPUT_KEY" ]]; then chmod 400 key # Set the key as Read-Only echo "Trying SCP process with SSH key" # Runs the SCP command - scp -r -P $INPUT_PORT -o StrictHostKeyChecking=no -i key $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION" + scp -rp -P $INPUT_PORT -o StrictHostKeyChecking=no -i key $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION" else # If the keyis empty, it uses the password for the SCP echo "Trying SCP process with password"