diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-07-07 15:20:38 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-07-07 15:20:38 +0200 |
commit | 2a0827f73948284dda38bfc7ac911fd005f342f7 (patch) | |
tree | 580e2467be1053983ea5bd1d103757bebcb53d13 | |
parent | 0d153952a840d7bdcccf7d2fc3a12a0ca53c4569 (diff) | |
download | www-andreasbaumann-cc-2a0827f73948284dda38bfc7ac911fd005f342f7.tar.gz www-andreasbaumann-cc-2a0827f73948284dda38bfc7ac911fd005f342f7.tar.bz2 |
added a publish sync script for the secure page
-rwxr-xr-x | sync_ssl.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sync_ssl.sh b/sync_ssl.sh new file mode 100755 index 0000000..49d484d --- /dev/null +++ b/sync_ssl.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +cp -av public ssl-public +find ssl-public -type f -exec \ + sed -i 's@http://www\.andreasbaumann\.cc@https://www.andreasbaumann.cc@g' {} \; + +rsync -e 'ssh -p 2221' -av \ + --usermap=abaumann:http \ + --groupmap=abaumann:http \ + --delete-after \ + --exclude '*~' \ + ssl-public/. root@andreasbaumann.cc:/srv/http/ssl-www.andreasbaumann.cc/. |