]> git.p6c8.net - jirafeau/mojo42.git/blobdiff - docker/cleanup.sh
[TASK] move docker CMD command to separate file
[jirafeau/mojo42.git] / docker / cleanup.sh
diff --git a/docker/cleanup.sh b/docker/cleanup.sh
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