first commit with existing files
This commit is contained in:
7
ncfiles/files/ncfiles.service
Normal file
7
ncfiles/files/ncfiles.service
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Nextcloud files scan
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
ExecStart=/usr/bin/docker exec --user www-data %1% /var/www/html/occ files:scan --all
|
||||
KillMode=process
|
||||
10
ncfiles/files/ncfiles.timer
Normal file
10
ncfiles/files/ncfiles.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Scan Nextcloud files every 30 minutes
|
||||
|
||||
[Timer]
|
||||
OnBootSec=30min
|
||||
OnUnitActiveSec=30min
|
||||
Unit=ncfiles.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user