mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-12-19 11:12:18 +01:00
fix: remove debug output and known_hosts file display in entrypoint script
This commit is contained in:
parent
a1f741433d
commit
61419b36d6
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ if [ "${INPUT_STRICT_HOSTKEYS_CHECKING:-false}" = "true" ]; then
|
||||||
echo "$key" | ssh-keygen -lf -
|
echo "$key" | ssh-keygen -lf -
|
||||||
# add to known hosts
|
# add to known hosts
|
||||||
echo "$key" | while IFS= read -r line; do hosts-add "$line"; done
|
echo "$key" | while IFS= read -r line; do hosts-add "$line"; done
|
||||||
|
|
||||||
|
set +x
|
||||||
|
echo "debug"
|
||||||
|
cat "~/.ssh/known_hosts"
|
||||||
else
|
else
|
||||||
echo "Warning: failed to fetch host key for $INPUT_REMOTE_HOST" >&2
|
echo "Warning: failed to fetch host key for $INPUT_REMOTE_HOST" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue