diff options
Diffstat (limited to 'website/host-scripts')
-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 \ |