[openssl-commits] [web] master update
Rich Salz
rsalz at openssl.org
Sat Sep 30 13:23:51 UTC 2017
The branch master has been updated
via 7098e3765e9c4a6181868ede9b821ccac7825f53 (commit)
from 1bfb4081f3992d6d5c6417c8230715c8d0148868 (commit)
- Log -----------------------------------------------------------------
commit 7098e3765e9c4a6181868ede9b821ccac7825f53
Author: Rich Salz <rsalz at akamai.com>
Date: Sat Sep 30 09:23:33 2017 -0400
Always purge top of the blog tree
-----------------------------------------------------------------------
Summary of changes:
bin/purge-one-hour | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/bin/purge-one-hour b/bin/purge-one-hour
index 870f6a9..ef781a2 100755
--- a/bin/purge-one-hour
+++ b/bin/purge-one-hour
@@ -2,14 +2,25 @@
# Script to purge everything more recent than one hour
-# Set HOME because 'sudo' might not and the credentials
+# Set HOME because 'sudo' might not find the credentials
cd /var/www/openssl
HOME=~openssl ; export HOME
+# Always purge the blog top
+cat <<EOF >>/tmp/p$$
+https://www.openssl.org/
+https://www.openssl.org/index.html
+https://www.openssl.org/blog
+https://www.openssl.org/blog/
+https://www.openssl.org/blog/index.html
+EOF
+
# If I were more of a find guru I could merge the find/fgrep/fgrep
# into a single find line. Oh well.
find . -type f -mmin -60 \
| fgrep -v .git \
| fgrep -v ./docs/ \
- | sed -e s@^./@https://www.openssl.org/@ \
- | ~rsalz/bin/akamai-purge invalidate
+ | sed -e s@^./@https://www.openssl.org/@ >>/tmp/p$$
+
+~rsalz/bin/akamai-purge invalidate < /tmp/p$$
+rm /tmp/p$$
More information about the openssl-commits
mailing list