diff --git a/entrypoint.sh b/entrypoint.sh index b3dd9d5..311998c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,6 +35,12 @@ if [ -z != ${10} ]; then #-o StrictHostKeyChecking=no avoid Host key verification failed. SSHPASS=${10} sshpass -e sftp -oBatchMode=no -b $TEMP_SFTP_FILE -P $3 $8 -o StrictHostKeyChecking=no $1@$2 + if [ -n "${11}" ]; then + echo "${11}" > $TEMP_SSH_SHELL_FILE + cat $TEMP_SSH_SHELL_FILE + echo Start Run Command + sh -c "sshpass -p 10 ssh -o StrictHostKeyChecking=no -p $3 $1@$2 < $TEMP_SSH_SHELL_FILE" + fi echo 'Deploy Success' exit 0