From f0f9f7b7e63514658e6593fb9d90e0d1c9c9ce02 Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Wed, 2 Dec 2015 20:56:56 -0800 Subject: [PATCH] Check github backup --- cgi-bin/service.status.d/blog.za3k.com | 4 ++-- cgi-bin/service.status.d/github repo list | 2 ++ cgi-bin/service.status.d/github repo list updater | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 cgi-bin/service.status.d/github repo list create mode 100644 cgi-bin/service.status.d/github repo list updater diff --git a/cgi-bin/service.status.d/blog.za3k.com b/cgi-bin/service.status.d/blog.za3k.com index aacabb2..0959cdc 100644 --- a/cgi-bin/service.status.d/blog.za3k.com +++ b/cgi-bin/service.status.d/blog.za3k.com @@ -1,2 +1,2 @@ -./up? "http://blog.za3k.com" || exit 1 -./up? "https://blog.za3k.com" || exit 1 +./up? "http://za3k.com/github/" || exit 1 +./up? "https://za3k.com/github/" || exit 1 diff --git a/cgi-bin/service.status.d/github repo list b/cgi-bin/service.status.d/github repo list new file mode 100644 index 0000000..aacabb2 --- /dev/null +++ b/cgi-bin/service.status.d/github repo list @@ -0,0 +1,2 @@ +./up? "http://blog.za3k.com" || exit 1 +./up? "https://blog.za3k.com" || exit 1 diff --git a/cgi-bin/service.status.d/github repo list updater b/cgi-bin/service.status.d/github repo list updater new file mode 100644 index 0000000..f6f0e4f --- /dev/null +++ b/cgi-bin/service.status.d/github repo list updater @@ -0,0 +1,3 @@ +FILE=/var/www/github/repos.json +ONE_WEEK=$((7 * 24 * 60 * 60)) +./file-updated? "${FILE}" "${ONE_WEEK}" -- 2.47.3