File ampache-systemd.patch of Package ampache

Index: ampache-6.4.0/docs/examples/ampache_cron.service
===================================================================
--- ampache-6.4.0.orig/docs/examples/ampache_cron.service
+++ ampache-6.4.0/docs/examples/ampache_cron.service
@@ -1,5 +1,5 @@
 [Unit]
-Description=ampache_cron
+Description=ampache-cron
 After=network.target remote-fs.target nss-lookup.target
 Documentation=https://github.com/ampache/ampache/wiki
 
@@ -7,10 +7,10 @@ Documentation=https://github.com/ampache
 PrivateTmp=true
 KillMode=mixed
 Type=oneshot
-User=www-data
-Group=www-data
-ExecStart=php bin/cli run:cronProcess
-WorkingDirectory=/var/www/html
+User=wwwrun
+Group=www
+ExecStart=/usr/bin/php /srv/www/ampache/bin/cli run:cronProcess
+WorkingDirectory=/srv/www/ampache
 ProtectSystem=yes
 
 [Install]
Index: ampache-6.4.0/docs/examples/ampache_cron.timer
===================================================================
--- ampache-6.4.0.orig/docs/examples/ampache_cron.timer
+++ ampache-6.4.0/docs/examples/ampache_cron.timer
@@ -1,9 +1,9 @@
 [Unit]
-Description=start ampache_cron.service
+Description=start ampache-cron.service
 
 [Timer]
 OnCalendar=*:0/15
-Unit=ampache_cron.service
+Unit=ampache-cron.service
 
 [Install]
 WantedBy=timers.target
openSUSE Build Service is sponsored by