Skip to content
Snippets Groups Projects
Commit 1dd60ac7 authored by bbartels's avatar bbartels
Browse files

website: update deploy script for new RHEL version

parent 6c8c11d4
No related branches found
No related tags found
No related merge requests found
......@@ -21,15 +21,14 @@ fi
PASSWORD=$(cat PASSWORD)
chmod -R 755 output || exit 1
cd output || exit 1
lftp<<END_SCRIPT
set sftp:connect-program "ssh -a -x -o PubkeyAuthentication=false"
open sftp://$HOST
user $USERNAME $PASSWORD
cd www
mirror -R --delete-first
exit
END_SCRIPT
#cd output || exit 1
echo "----"
echo "sftp password (copy and paste this into the password prompt)"
echo $PASSWORD
echo "----"
echo "Website updated."
\ No newline at end of file
sftp -o PubkeyAuthentication=false $USERNAME@$HOST <<EOF
put -r output/* www/
exit
EOF
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