[Pkg-ossec-devel] [SCM] Git repository for pkg-ossec branch, master, updated. f89fb2c00b1a2606035e5cd0e35b4ebe99f049ac

Javier Fernandez-Sanguino jfs at debian.org
Wed Aug 29 16:31:33 UTC 2012


The following commit has been merged in the master branch:
commit 894a6af74088af7bb343189d9a46c702224e16e9
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date:   Wed Aug 29 01:29:15 2012 +0200

    Actually, we should eval, not use backticks

diff --git a/debian/ossec-hids-agent.init b/debian/ossec-hids-agent.init
index 7923e3e..2a1025a 100755
--- a/debian/ossec-hids-agent.init
+++ b/debian/ossec-hids-agent.init
@@ -78,7 +78,7 @@ do_test_rules()
 do_start()
 {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control start $OUT`
+       eval "${DIRECTORY}/bin/ossec-control start $OUT"
        return $?
        # TODO REVIEW - Return
        #   0 if daemon has been started
@@ -88,7 +88,7 @@ do_start()
 
 do_stop() {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control stop $OUT`
+       eval "${DIRECTORY}/bin/ossec-control stop $OUT"
        return $?
        # TODO REVIEW - Return
        #   0 if daemon has been stopped
@@ -99,7 +99,7 @@ do_stop() {
 
 do_status() {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control status $OUT`
+       eval "${DIRECTORY}/bin/ossec-control status $OUT"
        return $?
 }
 
diff --git a/debian/ossec-hids-local.init b/debian/ossec-hids-local.init
index b146f34..2821035 100755
--- a/debian/ossec-hids-local.init
+++ b/debian/ossec-hids-local.init
@@ -78,7 +78,7 @@ do_test_rules()
 do_start()
 {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control start $OUT`
+       eval "${DIRECTORY}/bin/ossec-control start $OUT"
        return $?
        # TODO REVIEW - Return
        #   0 if daemon has been started
@@ -88,7 +88,7 @@ do_start()
 
 do_stop() {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control stop $OUT`
+       eval "${DIRECTORY}/bin/ossec-control stop $OUT"
        return $?
        # TODO REVIEW - Return
        #   0 if daemon has been stopped
@@ -99,7 +99,7 @@ do_stop() {
 
 do_status() {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control status $OUT`
+       eval "${DIRECTORY}/bin/ossec-control status $OUT"
        return $?
 }
 
diff --git a/debian/ossec-hids-server.init b/debian/ossec-hids-server.init
index 2491b05..e2dfebf 100755
--- a/debian/ossec-hids-server.init
+++ b/debian/ossec-hids-server.init
@@ -78,7 +78,7 @@ do_test_rules()
 do_start()
 {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control start $OUT`
+       eval "${DIRECTORY}/bin/ossec-control start $OUT"
        return $?
        # TODO REVIEW - Return
        #   0 if daemon has been started
@@ -88,7 +88,7 @@ do_start()
 
 do_stop() {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control stop $OUT`
+       eval "${DIRECTORY}/bin/ossec-control stop $OUT"
        return $?
        # TODO REVIEW - Return
        #   0 if daemon has been stopped
@@ -99,7 +99,7 @@ do_stop() {
 
 do_status() {
        [ -z "$DEBIAN_SCRIPT_DEBUG" ] && OUT=">$LOGFILE 2>&1"
-       `${DIRECTORY}/bin/ossec-control status $OUT`
+       eval "${DIRECTORY}/bin/ossec-control status $OUT"
        return $?
 }
 

-- 
Git repository for pkg-ossec



More information about the Pkg-ossec-devel mailing list