File: 01-cron.diff

package info (click to toggle)
znuny 6.5.15-2
  • links: PTS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 204,752 kB
  • sloc: perl: 1,032,259; xml: 74,509; javascript: 65,257; sql: 23,574; sh: 417; makefile: 63
file content (21 lines) | stat: -rw-r--r-- 977 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use the created system user "otrs" for cronjobs.

diff -Naur otrs-5.0.15.orig/var/cron/aaa_base.dist otrs-5.0.15/var/cron/aaa_base.dist
--- otrs-5.0.15.orig/var/cron/aaa_base.dist	2016-12-08 01:13:23.000000000 +0100
+++ otrs-5.0.15/var/cron/aaa_base.dist	2016-12-19 16:24:21.508300518 +0100
@@ -7,4 +7,4 @@
 # --
 
 # Who gets the cron emails?
-MAILTO="root@localhost"
+#MAILTO="root@localhost"
diff -Naur otrs-5.0.15.orig/var/cron/otrs_daemon.dist otrs-5.0.15/var/cron/otrs_daemon.dist
--- otrs-5.0.15.orig/var/cron/otrs_daemon.dist	2016-12-08 01:13:23.000000000 +0100
+++ otrs-5.0.15/var/cron/otrs_daemon.dist	2016-12-19 16:24:21.508300518 +0100
@@ -7,4 +7,5 @@
 # --
 
 # check OTRS daemon status
-*/5 * * * *    $HOME/bin/otrs.Daemon.pl start >> /dev/null
+*/5 * * * * otrs test -x $HOME/bin/otrs.Daemon.pl && $HOME/bin/otrs.Daemon.pl start >> /dev/null
+*/5 * * * * root test -d /run/otrs || (mkdir -p /run/otrs && chown otrs:www-data /run/otrs && chmod 0770 /run/otrs)