Code

Fix init script if path is unset (as in cron).
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Oct 2009 13:19:24 +0000 (13:19 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Oct 2009 13:19:24 +0000 (13:19 +0000)
Fix restart action.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14717 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/debian/gosa-si-common.init

index c1a730e7209cddf9610c255d4537f1af09f17a1a..d134eb3e7a0035ee434849759b7003700b0c26c3 100755 (executable)
@@ -21,6 +21,8 @@ DAEMON_CLIENT="/usr/sbin/${CLIENT}"
 PIDFILE_SERVER="/var/run/${SERVER}.pid"
 PIDFILE_CLIENT="/var/run/${CLIENT}.pid"
 
+PATH="/sbin:/usr/sbin:/bin:/usr/bin"
+
 # Load defaults
 [ -r /etc/default/gosa-si ] && . /etc/default/gosa-si
 
@@ -76,14 +78,14 @@ stop)   log_daemon_msg "Stopping GOsa support infrastructure"
         log_end_msg $?
         ;;
 reload|force-reload|restart) log_daemon_msg "Restarting GOsa support infrastructure" 
-       if [ "$START_CLIENT" = "1" -a -x {DAEMON_CLIENT} ]; then
+       if [ "$START_CLIENT" = "1" -a -x ${DAEMON_CLIENT} ]; then
                stop_client
        fi
-       if [ -x {DAEMON_SERVER} ]; then
+       if [ -x ${DAEMON_SERVER} ]; then
                stop_server
                start_server
        fi
-       if [ "$START_CLIENT" = "1" -a -x {DAEMON_CLIENT} ]; then
+       if [ "$START_CLIENT" = "1" -a -x ${DAEMON_CLIENT} ]; then
                start_client
        fi
        log_progress_msg "done"