summaryrefslogtreecommitdiff
path: root/aux/maintenance
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-23 21:01:56 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-23 21:01:56 -0600
commit1692a370b4f58fd3ad709605d0e502dcac2a5c07 (patch)
tree0207694e127bae508eb074a63751ca9f02d20afe /aux/maintenance
parent44058923078d5eb5bcab9bf5a1e507de8c6f60a6 (diff)
fuss with systemd timers
Diffstat (limited to 'aux/maintenance')
-rwxr-xr-xaux/maintenance15
1 files changed, 15 insertions, 0 deletions
diff --git a/aux/maintenance b/aux/maintenance
new file mode 100755
index 0000000..d529b49
--- /dev/null
+++ b/aux/maintenance
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -x
+
+case "$1" in
+ hourly)
+ rm -f -- .http-cache/'https%3A%2F%2F'*'%2Fapi%2Fv1%2Faccounts%2F'*'%2Fstatuses%3Fexclude_reblogs%3Dtrue%26tagged%3DDailyStandUp'
+ ;;
+ daily|weekly)
+ rm -rf -- .http-cache
+ ;;
+esac
+
+make
+
+git -C .git-cache maintenance run --schedule="$1"