Created
December 13, 2019 21:32
-
-
Save Triloworld/f93c2463736660b2541161eb8d63ca8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#As first script | |
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/lftp.sh | bash -s | |
#As second script - use enviroment | |
# Options for LFTP | |
#echo "debug" >> ~/.lftprc; | |
#echo "set log:enabled true" >> ~/.lftprc; | |
echo "set ftp:ssl-protect-data false" >> ~/.lftprc; | |
echo "set ftp:ssl-force false" >> ~/.lftprc; | |
echo "set ftp:ssl-allow false" >> ~/.lftprc; | |
echo "set ssl:verify-certificate no" >> ~/.lftprc; | |
echo "set ftp:timezone ''" >> ~/.lftprc; | |
#echo "set net:max-retries 0" >> ~/.lftprc; | |
#echo "set net:connection-limit 1" >> ~/.lftprc; | |
lftp -c "open -u $FTP_USER,$FTP_PASSWORD $FTP_HOST; mirror --use-cache -x \.git.+ `sed 's/^/-X /' .gitignore | tr '\n' ' '` -R ~/clone/ /domains/$DOMAIN/public_html/"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error: hang out too long - if SSL isn't properly set by settings or certs don't match. No logging available - one of reason to leave service
Error: GitHub manually revoke access - no way to re-enable it by adding service back per repository & project