Fix services

This commit is contained in:
2023-03-26 11:08:10 +01:00
parent 678894d7db
commit a07018b802
5 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
[Unit]
Description=Nextcloud file scan
[Service]
Type=oneshot
ExecStart=docker-compose -f /opt/scarif/docker-compose.yml exec nextcloud php occ files:scan --all

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Regular scan of nextcloud files
[Timer]
OnCalendar=*:0/15
RandomizedDelaySec=2m
Persistent=true
[Install]
WantedBy=timers.target