]> git.pld-linux.org Git - packages/phpMyAdmin.git/commitdiff
- release 3 - fixed pre/post auto/ac/phpMyAdmin-2_6_0-0_rc2_3
authorPaweł Gołaszewski <blues@pld-linux.org>
Mon, 27 Sep 2004 20:51:18 +0000 (20:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    phpMyAdmin.spec -> 1.74

phpMyAdmin.spec

index b3eb68d7c036e30980ef2dfbe521294cbb5758f2..70a092a8e90592468b8d6ddca06bacbaff94ae19 100644 (file)
@@ -2,7 +2,7 @@ Summary:        phpMyAdmin - web-based MySQL administration
 Summary(pl):   phpMyAdmin - administracja bazami MySQL przez WWW
 Name:          phpMyAdmin
 %define                _pl     rc2
-%define                _rel    2
+%define                _rel    3
 # NOTE: bump _rel with every new patchlevel
 Version:       2.6.0
 Release:       0.%{_pl}.%{_rel}
@@ -93,11 +93,14 @@ rm -rf $RPM_BUILD_ROOT
 %post
 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*%{name}.conf" /etc/httpd/httpd.conf; then
        echo "Include /etc/httpd/%{name}.conf" >> /etc/httpd/httpd.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /usr/sbin/apachectl restart 1>&2
+       fi
 elif [ -d /etc/httpd/httpd.conf ]; then
        ln -sf /etc/httpd/%{name}.conf /etc/httpd/httpd.conf/99_%{name}.conf
-fi
-if [ -f /var/lock/subsys/httpd ]; then
-       /usr/sbin/apachectl restart 1>&2
+       if [ -f /var/lock/subsys/httpd ]; then
+               /usr/sbin/apachectl restart 1>&2
+       fi
 fi
 
 %preun
@@ -109,9 +112,9 @@ if [ "$1" = "0" ]; then
                grep -v "^Include.*%{name}.conf" /etc/httpd/httpd.conf > \
                        /etc/httpd/httpd.conf.tmp
                mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-               if [ -f /var/lock/subsys/httpd ]; then
-                   /usr/sbin/apachectl restart 1>&2
-               fi
+       fi
+       if [ -f /var/lock/subsys/httpd ]; then
+           /usr/sbin/apachectl restart 1>&2
        fi
 fi
 
This page took 0.106828 seconds and 4 git commands to generate.