added ftp password to lftp command

This commit is contained in:
Marvin Steadfast 2015-07-24 12:37:23 +02:00
parent b182326851
commit a810fb212a
2 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -44,3 +44,6 @@ nosetests.xml
.mr.developer.cfg .mr.developer.cfg
.project .project
.pydevproject .pydevproject
# OWN STUFF
.ftp_pass.txt

View File

@ -10,6 +10,7 @@ PUBLISHCONF=$(BASEDIR)/publishconf.py
FTP_HOST=xsteadfastx.org/ FTP_HOST=xsteadfastx.org/
FTP_USER=xstead_0 FTP_USER=xstead_0
FTP_PASS=`cat .ftp_pass.txt`
FTP_TARGET_DIR=/ FTP_TARGET_DIR=/
SSH_HOST=localhost SSH_HOST=localhost
@ -95,7 +96,7 @@ dropbox_upload: publish
cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR) cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR)
ftp_upload: publish ftp_upload: publish
lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "set ftp:ssl-allow no; mirror -R --ignore-time --no-perms --parallel=4 -e --use-cache -v $(OUTPUTDIR) $(FTP_TARGET_DIR); quit" lftp ftp://$(FTP_USER):$(FTP_PASS)@$(FTP_HOST) -e "set ftp:ssl-allow no; mirror -R --ignore-time --no-perms --parallel=4 -e --use-cache -v $(OUTPUTDIR) $(FTP_TARGET_DIR); quit"
s3_upload: publish s3_upload: publish
s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type