diff --git a/entrypoint.sh b/entrypoint.sh index 7993fc6..7c1b429 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,13 +1,5 @@ #!/bin/sh -set -eu - -echo "Starting FTP Deploy" - -echo "Using $INPUT_USER to connect to $INPUT_HOST" - -echo "Mirroring from $INPUT_LOCALDIR to $INPUT_REMOTEDIR" +set -e lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit" - -echo "FTP Deploy Complete" \ No newline at end of file