summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-07-07 15:20:38 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-07-07 15:20:38 +0200
commit2a0827f73948284dda38bfc7ac911fd005f342f7 (patch)
tree580e2467be1053983ea5bd1d103757bebcb53d13
parent0d153952a840d7bdcccf7d2fc3a12a0ca53c4569 (diff)
downloadwww-andreasbaumann-cc-master.tar.gz
www-andreasbaumann-cc-master.tar.bz2
added a publish sync script for the secure pageHEADmaster
-rwxr-xr-xsync_ssl.sh12
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/.