From 7d22a8aeeb3cf53af9c0ee19e28c0fee954d2dd2 Mon Sep 17 00:00:00 2001 From: Marco Dalla Santa Date: Mon, 8 Feb 2021 17:48:03 +0100 Subject: [PATCH] Fixed hardcoded user in scp. --- CHANGELOG.md | 7 +++++++ with_key.sh | 2 +- with_pass.sh | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0af20f..7e01172 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # [Unreleased] +## [v1.0.3] - 2021-02-08 + +### Fixed +- Hardcoded user "ubuntu" in scp. + ## [v1.0.2] - 2020-12-21 ### Fixed @@ -18,5 +23,7 @@ [unreleased]: https://github.com/marcodallasanta/ssh-scp-deploy/compare/main...development +[v1.0.3]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.3 +[v1.0.2]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.2 [v1.0.1]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.1 [v1.0.0]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.0 \ No newline at end of file diff --git a/with_key.sh b/with_key.sh index ae54939..16201d5 100644 --- a/with_key.sh +++ b/with_key.sh @@ -11,7 +11,7 @@ if [ ! -z "$PRE_UPLOAD" ]; then fi echo "🚚 Uploading via scp..." && -scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ubuntu@${INPUT_HOST}:"${INPUT_REMOTE}" && +scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ${INPUT_USER}@${INPUT_HOST}:"${INPUT_REMOTE}" && echo "🙌 Uploaded via scp"; POST_UPLOAD=${INPUT_POST_UPLOAD} diff --git a/with_pass.sh b/with_pass.sh index 32a968a..8f30ed4 100644 --- a/with_pass.sh +++ b/with_pass.sh @@ -6,7 +6,7 @@ if [ ! -z "$PRE_UPLOAD" ]; then fi echo "🚚 Uploading via scp..." && -sshpass -p ${PASSWORD} scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ubuntu@${INPUT_HOST}:"${INPUT_REMOTE}" && +sshpass -p ${PASSWORD} scp ${INPUT_SSH_OPTIONS} ${INPUT_SCP_OPTIONS} -P "${INPUT_PORT}" -r ${INPUT_LOCAL} ${INPUT_USER}@${INPUT_HOST}:"${INPUT_REMOTE}" && echo "🙌 Uploaded via scp"; POST_UPLOAD=${INPUT_POST_UPLOAD}