Commit c7e31dab authored by Isabella Skořepová's avatar Isabella Skořepová

Allow to select ftp vs sftp

parent 726885df
......@@ -11,5 +11,15 @@ node index.js --noserver
echo "Site compiled"
chmod a+X build -R
USER=ok1kvk.cz-www-nove
HOST=ok1kvk.cz
echo "======================================================================"
echo "Uploading to nove.ok1kvk.cz"
lftp -c "set ftp:ssl-allow no; open --user ok1kvk.cz-www-nove --env-password ftp://ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"
if [ $1 == "ftp" ]; then
echo "Using FTP"
lftp -c "set ftp:ssl-allow no;open --user ok1kvk.cz-www-nove --env-password ftp://ftp.ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"
else
echo "Using SFTP"
lftp -c "set ftp:ssl-allow no;open --user ok1kvk.cz-www-nove --env-password -p 2121 sftp://ftp.ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment