From 08a7f6c111f013c68f4807f4e8caa9f31278c2c0 Mon Sep 17 00:00:00 2001
From: Matthias Andree <matthias.andree@gmx.de>
Date: Fri, 11 Oct 2019 23:42:44 +0200
Subject: Also upload to my root server now that it hosts www.fetchmail.info.

---
 website/host-scripts/upload-website.sh | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

(limited to 'website/host-scripts')

diff --git a/website/host-scripts/upload-website.sh b/website/host-scripts/upload-website.sh
index 55de06c7..aeee1755 100755
--- a/website/host-scripts/upload-website.sh
+++ b/website/host-scripts/upload-website.sh
@@ -4,6 +4,7 @@
 # (C) 2008 - 2014 by Matthias Andree. GNU GPL v3.
 
 : ${SOURCEFORGE_LOGIN=m-a}
+: ${ROOTSRV:=$(cat ~/.rootsrv 2>/dev/null)}
 
 # abort on error
 set -eu
@@ -32,8 +33,18 @@ rsync \
     "${SOURCEFORGE_LOGIN},fetchmail@web.sourceforge.net:htdocs/" &
 pids="$pids $!"
 
-: echo "==>  Uploading website (rsync) to local"
-: rsync \
+echo "==>  Uploading website (rsync) to own root server"
+rsync \
+    --chmod=ug=rwX,o=rX,Dg=s --perms \
+    --copy-links --times --checksum --verbose \
+    --exclude host-scripts \
+    --exclude .git --exclude '*~' --exclude '#*#' \
+    * \
+    "${ROOTSRV}"://usr/local/www/fetchmail.info/ &
+pids="$pids $!"
+
+echo "==>  Uploading website (rsync) to local"
+rsync \
     --chmod=ug=rwX,o=rX,Dg=s --perms \
     --copy-links --times --checksum --verbose \
     --exclude host-scripts \
-- 
cgit v1.2.3