SOURCES: php4-module-install - remove apache restart calls, this s...

glen glen at pld-linux.org
Sun Aug 14 22:56:01 CEST 2005


Author: glen                         Date: Sun Aug 14 20:56:01 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- remove apache restart calls, this script is used only to add modules that are not apache related

---- Files affected:
SOURCES:
   php4-module-install (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SOURCES/php4-module-install
diff -u SOURCES/php4-module-install:1.10 SOURCES/php4-module-install:1.11
--- SOURCES/php4-module-install:1.10	Sun Jul 10 00:36:40 2005
+++ SOURCES/php4-module-install	Sun Aug 14 22:55:56 2005
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-VERSION="$0 V 0.1 (C) 2001 Artur Frysiak"
+VERSION="$0 V 0.3 (C) 2001 Artur Frysiak, Elan Ruusamäe"
 COMMAND=usage
 VERBOSE=""
 MODNAME=""
@@ -12,28 +12,12 @@
 		echo "activating module '${MODNAME}.so' in ${INIFILE}" 1>&2
 		echo "extension=${MODNAME}.so" >> ${INIFILE}
 	fi
-
-	# restart only if there's module installed
-	if [ -f /etc/httpd/httpd.conf/??_mod_php4.conf ] && [ -f /var/lock/subsys/httpd ]; then
-		/etc/rc.d/init.d/httpd restart 1>&2
-	fi
-	if [ -f /etc/apache/conf.d/??_mod_php4.conf ] && [ -f /var/lock/subsys/apache ]; then
-		/etc/rc.d/init.d/apache restart 1>&2
-	fi
 }
 
 deinstall()
 {
 	if [ -f ${INIFILE} ] && grep -q "^extension[[:space:]]*=[[:space:]]*${MODNAME}.so" ${INIFILE}; then
 		sed -i -e "/^extension[[:space:]]*=[[:space:]]*${MODNAME}.so/d" ${INIFILE}
-	fi
-
-	# restart only if there's module installed
-	if [ -f /etc/httpd/httpd.conf/??_mod_php4.conf ] && [ -f /var/lock/subsys/httpd ]; then
-		/etc/rc.d/init.d/httpd restart 1>&2
-	fi
-	if [ -f /etc/apache/conf.d/??_mod_php4.conf ] && [ -f /var/lock/subsys/apache ]; then
-		/etc/rc.d/init.d/apache restart 1>&2
 	fi
 }
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/php4-module-install?r1=1.10&r2=1.11&f=u




More information about the pld-cvs-commit mailing list