Pārlūkot izejas kodu

debian: If RUN=no in /etc/default/kamailio then return 0 isntead of LSB compliant error codes (if not, dpkg returns error in the instalation as kamailio init script is called automatically to start when installed).

Iñaki Baz Castillo 14 gadi atpakaļ
vecāks
revīzija
9b553a5c25

+ 1 - 10
pkg/kamailio/deb/debian/kamailio.init

@@ -107,16 +107,7 @@ fi
 
 if [ "$RUN_KAMAILIO" != "yes" ]; then
   echo "$DESC not yet configured. Edit $DEFAULTS first."
-  case "$1" in
-  status)
-    # LSB - 4: program or service status is unknown.
-    exit 4
-    ;;
-  *)
-    # LSB - 6: program is not configured.
-    exit 6
-    ;;
-  esac
+  exit 0
 fi
 
 

+ 1 - 10
pkg/kamailio/deb/lenny/kamailio.init

@@ -107,16 +107,7 @@ fi
 
 if [ "$RUN_KAMAILIO" != "yes" ]; then
   echo "$DESC not yet configured. Edit $DEFAULTS first."
-  case "$1" in
-  status)
-    # LSB - 4: program or service status is unknown.
-    exit 4
-    ;;
-  *)
-    # LSB - 6: program is not configured.
-    exit 6
-    ;;
-  esac
+  exit 0
 fi
 
 

+ 1 - 10
pkg/kamailio/deb/lucid/kamailio.init

@@ -107,16 +107,7 @@ fi
 
 if [ "$RUN_KAMAILIO" != "yes" ]; then
   echo "$DESC not yet configured. Edit $DEFAULTS first."
-  case "$1" in
-  status)
-    # LSB - 4: program or service status is unknown.
-    exit 4
-    ;;
-  *)
-    # LSB - 6: program is not configured.
-    exit 6
-    ;;
-  esac
+  exit 0
 fi
 
 

+ 1 - 10
pkg/kamailio/deb/squeeze/kamailio.init

@@ -107,16 +107,7 @@ fi
 
 if [ "$RUN_KAMAILIO" != "yes" ]; then
   echo "$DESC not yet configured. Edit $DEFAULTS first."
-  case "$1" in
-  status)
-    # LSB - 4: program or service status is unknown.
-    exit 4
-    ;;
-  *)
-    # LSB - 6: program is not configured.
-    exit 6
-    ;;
-  esac
+  exit 0
 fi