debug show env

This commit is contained in:
lubiana 2024-12-12 02:43:59 +01:00
parent 753d6d156e
commit 7f8bcc8438
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

View file

@ -1,17 +1,18 @@
#!/bin/sh -l #!/bin/sh -l
env
mkdir -p ~/.ssh/ mkdir -p ~/.ssh/
# Print the SSH key, replacing newline characters with actual new lines # Print the SSH key, replacing newline characters with actual new lines
echo "$INPUT_REMOTE_KEY" | tr -d '\r' > ~/.ssh/id_rsa echo ${INPUT_REMOTE_KEY} | tr -d '\r' > ~/.ssh/id_rsa
cat ~/.ssh/id_rsa
# Set appropriate permissions for the SSH key # Set appropriate permissions for the SSH key
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
# Add the remote host's key to the known_hosts file to avoid authenticity confirmation # Add the remote host's key to the known_hosts file to avoid authenticity confirmation
ssh-keyscan -H $INPUT_REMOTE_HOST >> ~/.ssh/known_hosts echo 'ssh-keyscan -H ${INPUT_REMOTE_HOST} >> ~/.ssh/known_hosts'
# SCP files to the remote host # SCP files to the remote host
#rsync ${INPUT_RSYNC_PARAMETERS} public/ ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH} echo 'rsync ${INPUT_RSYNC_PARAMETERS} public/ ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH}'
exit 0 exit 0