diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2019-10-11 23:42:44 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2019-10-11 23:42:44 +0200 |
commit | 08a7f6c111f013c68f4807f4e8caa9f31278c2c0 (patch) | |
tree | 5575750bd085800910c9b2c4c22b68f3654b860b /website | |
parent | 2cbe6f655a6bb5dea83b1b65bfc1f523195254b2 (diff) | |
download | fetchmail-08a7f6c111f013c68f4807f4e8caa9f31278c2c0.tar.gz fetchmail-08a7f6c111f013c68f4807f4e8caa9f31278c2c0.tar.bz2 fetchmail-08a7f6c111f013c68f4807f4e8caa9f31278c2c0.zip |
Also upload to my root server now that it hosts www.fetchmail.info.
Diffstat (limited to 'website')
-rwxr-xr-x | website/host-scripts/upload-website.sh | 15 |
1 files changed, 13 insertions, 2 deletions
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 \ |