]> git.pld-linux.org Git - packages/apache-mod_python.git/commitdiff
- post/preun fixes.
authorserek <serek@pld-linux.org>
Fri, 1 Nov 2002 14:30:53 +0000 (14:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_python.spec -> 1.35.2.3

apache-mod_python.spec

index 1f0d3ae695281f14c4c78d2fa26a5bf0ece9532c..3fdb82539437fb448aafd1c22a282cc05aab86b7 100644 (file)
@@ -158,18 +158,18 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{apache_confdir}/66_mod_python.conf
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-%{apxs} -e -a -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
+%post 
 if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
+        /etc/rc.d/init.d/httpd restart 1>&2
+else
+   echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
 fi
 
-%preun
+%preun 
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n %{mod_name} %{apache_moddir}/mod_%{mod_name}.so 1>&2
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
-       fi
+        if [ -f /var/lock/subsys/httpd ]; then
+                /etc/rc.d/init.d/httpd restart 1>&2
+        fi
 fi
 
 %files
@@ -178,3 +178,4 @@ fi
 %doc README COPYRIGHT NEWS CREDITS
 %attr(755,root,root) %{apache_moddir}/*
 %{py_sitedir}/mod_%{mod_name}
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_python.conf
This page took 0.041022 seconds and 4 git commands to generate.