mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2025-08-15 06:25:05 +00:00
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:
parent
5aed021d1b
commit
37d8e9ed28
3
entrypoint.sh
Normal file → Executable file
3
entrypoint.sh
Normal file → Executable 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user