first commit with existing files

This commit is contained in:
2025-05-17 13:08:39 +02:00
commit cda37be691
29 changed files with 617 additions and 0 deletions

15
nccron_deprecated/cron.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
cd "$(dirname "$0")"
echo -n "Container name: "
read cont
sudo cp ./files/nccron.service /etc/systemd/system/nccron.service
sudo cp ./files/nccron.timer /etc/systemd/system/nccron.timer
sudo sed -i "s/%1%/$cont/g" /etc/systemd/system/nccron.service
sudo systemctl daemon-reload
sudo systemctl enable --now nccron.timer

View File

@@ -0,0 +1,7 @@
[Unit]
Description=Nextcloud cron.php job
[Service]
User=root
ExecStart=/usr/bin/docker exec --user www-data %1% php /var/www/html/cron.php
KillMode=process

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Run Nextcloud cron.php every 5 minutes
[Timer]
OnBootSec=5min
OnUnitActiveSec=5min
Unit=nccron.service
[Install]
WantedBy=timers.target