[packages/otrs] - fixed crontab

paszczus paszczus at pld-linux.org
Fri Feb 1 15:36:17 CET 2013


commit 6350bf716eede1b7f61569d6dd3b2065e1f07e2e
Author: Sławomir Paszkiewicz <paszczus at pld-linux.org>
Date:   Fri Feb 1 15:36:11 2013 +0100

    - fixed crontab

 otrs-paths.patch | 20 ++++++++++----------
 otrs.spec        |  1 -
 2 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/otrs.spec b/otrs.spec
index b804e8d..033c609 100644
--- a/otrs.spec
+++ b/otrs.spec
@@ -402,7 +402,6 @@ fi
 # This entries should be changed into links and proper trigger to move data:
 %attr(751,otrs,http) %dir %{otrsdir}/var/
 %{otrsdir}/var/*.png
-%attr(755,otrs,http) %dir /etc/cron.d
 %attr(2775,otrs,http) %{otrsdir}/var/article
 %attr(755,otrs,http) %{otrsdir}/var/fonts
 %attr(755,otrs,http) %{otrsdir}/var/httpd
diff --git a/otrs-paths.patch b/otrs-paths.patch
index 4477e53..99697f7 100644
--- a/otrs-paths.patch
+++ b/otrs-paths.patch
@@ -158,26 +158,26 @@
  
  # if one of this is false, it will not be checked at the startup!
  # Note: (may be the database isn't on the same host! --> DB_RUNNING=0) 
---- otrs-3.2.1.new/bin/Cron.sh	2013-01-31 09:29:55.308734799 +0100
-+++ otrs-3.2.1/bin/Cron.sh	2012-11-22 12:43:09.000000000 +0100
+--- otrs-3.2.1/bin/Cron.sh	2012-11-22 12:43:09.000000000 +0100
++++ otrs-3.2.1.new/bin/Cron.sh	2013-01-31 09:29:55.308734799 +0100
 @@ -45,16 +45,16 @@
  OTRS_HOME="`pwd`"
  cd -
  
--#OTRS_ROOT=/usr/share/otrs
--if test -e /etc/cron.d; then
-+#OTRS_ROOT=/opt/OpenTRS
-+if test -e $OTRS_HOME/var/cron; then
+-#OTRS_ROOT=/opt/OpenTRS
+-if test -e $OTRS_HOME/var/cron; then
++#OTRS_ROOT=/usr/share/otrs
++if test -e /etc/cron.d; then
      OTRS_ROOT=$OTRS_HOME
  else
--    echo "No cronjobs in /etc/cron.d found!";
-+    echo "No cronjobs in $OTRS_HOME/var/cron found!";
+-    echo "No cronjobs in $OTRS_HOME/var/cron found!";
++    echo "No cronjobs in /etc/cron.d found!";
      echo " * Check the \$HOME (/etc/passwd) of the OTRS user. It must be the root dir of your OTRS system (e. g. /opt/otrs). ";
      exit 5;
  fi
  
--CRON_DIR=/etc/cron.d
-+CRON_DIR=$OTRS_ROOT/var/cron
+-CRON_DIR=$OTRS_ROOT/var/cron
++CRON_DIR=/etc/cron.d
  CRON_TMP_FILE=$OTRS_ROOT/var/tmp/otrs-cron-tmp.$$
  
  echo "Cron.sh - start/stop OTRS cronjobs - <\$Revision: 1.22 $> "
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/otrs.git/commitdiff/6350bf716eede1b7f61569d6dd3b2065e1f07e2e



More information about the pld-cvs-commit mailing list