1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 08:44:09 +02:00

setup cron for background jobs

This commit is contained in:
Robin Appelman 2026-09-20 12:52:24 +02:00
commit fd3c5f4708
7 changed files with 21 additions and 5 deletions

View file

@ -2,7 +2,6 @@
touch /var/log/nginx/access.log
touch /var/log/nginx/error.log
touch /var/log/cron/owncloud.log
mkdir /config
if not ("/config/php.ini" | path exists) {
@ -35,6 +34,7 @@ let dirs = [
let files = [
["condition", "path"];
["/", "/var/www/html/build/integration/composer.lock"],
["/", "/var/log/cron/haze.log"]
]
$dirs | each { |dir|
@ -88,6 +88,7 @@ if ("REDIS_TLS" in $env) {
cp /etc/supervisor/redis-tls.conf /etc/supervisor/enabled/
} else {
cp /etc/supervisor/redis-plain.conf /etc/supervisor/enabled/
cp /etc/supervisor/redis-plain.conf /etc/supervisor/enabled/
}
if ("BLACKFIRE_SERVER_ID" in $env) {