Skip to content
Snippets Groups Projects
Commit 0213506b authored by bbartels's avatar bbartels
Browse files

website: try new lftp script

parent b5d4043b
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
...@@ -23,12 +23,14 @@ PASSWORD=$(cat PASSWORD) ...@@ -23,12 +23,14 @@ PASSWORD=$(cat PASSWORD)
chmod -R 755 output || exit 1 chmod -R 755 output || exit 1
cd output || exit 1 cd output || exit 1
lftp<<END_SCRIPT lftp -e "open sftp://$HOST; user $USERNAME $PASSWORD; cd www; mirror -R --delete-first; exit"
open sftp://$HOST
user $USERNAME $PASSWORD # lftp<<END_SCRIPT
cd www # open sftp://$HOST
mirror -R --delete-first # user $USERNAME $PASSWORD
exit # cd www
END_SCRIPT # mirror -R --delete-first
# exit
# END_SCRIPT
echo "Website updated." echo "Website updated."
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment