From 28d6168ebf0707d5c118b3bbdfb831b56046127c Mon Sep 17 00:00:00 2001 From: wl <356485255@qq.com> Date: Wed, 31 Mar 2021 12:50:09 +0800 Subject: [PATCH] 1. fix mkdir issue --- entrypoint.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 38765a7..337102d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,10 +14,7 @@ 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 -mkdir -p $6 +ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 mkdir -p $6 echo 'sftp start' # create a temporary file containing sftp commands