]> git.p6c8.net - jirafeau_mojo42.git/commitdiff
dayly cleanup
authorYour Name <you@example.com>
Wed, 29 Apr 2020 09:11:36 +0000 (11:11 +0200)
committerJérome Jutteau <jerome@jutteau.fr>
Sat, 27 Jun 2020 19:13:17 +0000 (21:13 +0200)
docker/cleanup [new file with mode: 0755]

diff --git a/docker/cleanup b/docker/cleanup
new file mode 100755 (executable)
index 0000000..2d2697e
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+while true
+do
+    php /www/admin.php clean_expired
+    php /www/admin.php clean_async
+    # wait 24 hours
+    sleep 86400
+done
\ No newline at end of file

patrick-canterino.de