SVN: rc-scripts/trunk/rc.d/init.d/functions

jajcus jajcus at pld-linux.org
Mon May 10 14:59:51 CEST 2010


Author: jajcus
Date: Mon May 10 14:59:51 2010
New Revision: 11422

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- properly quote is_yes() argument


Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions	(original)
+++ rc-scripts/trunk/rc.d/init.d/functions	Mon May 10 14:59:51 2010
@@ -1246,7 +1246,7 @@
 			exit $?
 			;;
 		restart)
-			if is_yes $has_configtest ; then
+			if is_yes "$has_configtest" ; then
 				"$script" configtest || exit 1
 			fi
 			upstart_stop $name
@@ -1257,7 +1257,7 @@
 			if ! is_upstart_running "$name" ; then
 				exit 0
 			fi
-			if is_yes $has_configtest ; then
+			if is_yes "$has_configtest" ; then
 				"$script" configtest || exit 1
 			fi
 			upstart_stop $name
@@ -1265,7 +1265,7 @@
 			exit $?
 			;;
 		reload)
-			if is_yes $has_configtest ; then
+			if is_yes "$has_configtest" ; then
 				"$script" configtest || exit 1
 			fi
 			if is_upstart_task "$name" ; then
@@ -1277,7 +1277,7 @@
 			fi
 			;;
 		force-reload)
-			if is_yes $has_configtest ; then
+			if is_yes "$has_configtest" ; then
 				"$script" configtest || exit 1
 			fi
 			if is_upstart_task "$name" ; then


More information about the pld-cvs-commit mailing list