From ada92cf764b0d7e68ff20719a7ad867a6f1e7c71 Mon Sep 17 00:00:00 2001
From: Brendan Bartels <bbartels@iastate.edu>
Date: Wed, 18 Jan 2017 14:04:00 -0600
Subject: [PATCH] website: update deploy script for new RHEL version

---
 website/scripts/deploy.sh | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/website/scripts/deploy.sh b/website/scripts/deploy.sh
index 19f1813c8..f3902dd53 100644
--- a/website/scripts/deploy.sh
+++ b/website/scripts/deploy.sh
@@ -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
-- 
GitLab