From f19d10cf6bed527748f74c35abd43cdc0ebbeb9f Mon Sep 17 00:00:00 2001 From: wl <356485255@qq.com> Date: Wed, 31 Mar 2021 12:06:37 +0800 Subject: [PATCH] 1. fix mkdir issue --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index c8d507e..38765a7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,8 +13,11 @@ printf "%s" "$4" >$TEMP_SSH_PRIVATE_KEY_FILE chmod 600 $TEMP_SSH_PRIVATE_KEY_FILE echo 'ssh start' + +ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 + # create directory if needed -ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 mkdir -p $5 +mkdir -p $6 echo 'sftp start' # create a temporary file containing sftp commands