Removing sshpass

My hosting provider requires SFTP, but blocks SSH access and that seems to prevent me from using this action as it tries to execute sshpass
This commit is contained in:
Thijs Niks 2019-11-16 18:12:42 -08:00
parent 5aed021d1b
commit 37d8e9ed28

3
entrypoint.sh Normal file → Executable file
View File

@ -12,9 +12,6 @@ WDEFAULT_METHOD=${METHOD:-"ftp"}
if [ $WDEFAULT_METHOD = "sftp" ]; then if [ $WDEFAULT_METHOD = "sftp" ]; then
WDEFAULT_PORT=${PORT:-"22"} WDEFAULT_PORT=${PORT:-"22"}
echo "Establishing SFTP connection..."
sshpass -p $FTP_PASSWORD sftp -o StrictHostKeyChecking=no -P $WDEFAULT_PORT $FTP_USERNAME@$FTP_SERVER
echo "Connection established"
else else
WDEFAULT_PORT=${PORT:-"21"} WDEFAULT_PORT=${PORT:-"21"}
fi; fi;