diff --git a/scripts/docker-ssh-add-key b/scripts/docker-ssh-add-key new file mode 100755 index 0000000..08a94d1 --- /dev/null +++ b/scripts/docker-ssh-add-key @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +if [ ! "$1" ]; then + echo "Usage: $0 ..." + exit 1 +fi + +DOCKER_PARSE_SERVER_NAME="$1" +shift + +if [ ! "$1" ]; then + echo "Usage: $0 ..." + exit 1 +fi + +while [ "$1" ]; do + if [ ! -f "$1" ]; then + shift + continue + fi + + docker exec -i parse-server ssh-add-key < "$1" + shift +done