Fix services
This commit is contained in:
6
nextcloud/nextcloud-scan.service
Normal file
6
nextcloud/nextcloud-scan.service
Normal 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
|
||||
10
nextcloud/nextcloud-scan.timer
Normal file
10
nextcloud/nextcloud-scan.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Regular scan of nextcloud files
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/15
|
||||
RandomizedDelaySec=2m
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user