SPECS: mailgraph.spec - need to completely restart webserver when ...

glen glen at pld-linux.org
Sun Mar 5 15:00:47 CET 2006


Author: glen                         Date: Sun Mar  5 14:00:47 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- need to completely restart webserver when modifying group membership, rel 5

---- Files affected:
SPECS:
   mailgraph.spec (1.39 -> 1.40) 

---- Diffs:

================================================================
Index: SPECS/mailgraph.spec
diff -u SPECS/mailgraph.spec:1.39 SPECS/mailgraph.spec:1.40
--- SPECS/mailgraph.spec:1.39	Sun Mar  5 14:56:11 2006
+++ SPECS/mailgraph.spec	Sun Mar  5 15:00:42 2006
@@ -4,7 +4,7 @@
 Summary(pl):	Proste statystyki dla Postfiksa
 Name:		mailgraph
 Version:	1.12
-Release:	4
+Release:	5
 License:	GPL v2
 Group:		Applications/Networking
 Source0:	http://people.ee.ethz.ch/~dws/software/mailgraph/pub/%{name}-%{version}.tar.gz
@@ -87,14 +87,22 @@
 fi
 
 %triggerin -- apache1
-%addusertogroup http stats
+m=$(%addusertogroup http stats)
+if [ -n "$m" ]; then
+	echo >&2 "$m"
+	%service apache restart
+fi
 %webapp_register apache %{_webapp}
 
 %triggerun -- apache1
 %webapp_unregister apache %{_webapp}
 
 %triggerin -- apache < 2.2.0, apache-base
-%addusertogroup http stats
+m=$(%addusertogroup http stats)
+if [ -n "$m" ]; then
+	echo >&2 "$m"
+	%service httpd restart
+fi
 %webapp_register httpd %{_webapp}
 
 %triggerun -- apache < 2.2.0, apache-base
@@ -138,6 +146,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.40  2006/03/05 14:00:42  glen
+- need to completely restart webserver when modifying group membership, rel 5
+
 Revision 1.39  2006/03/05 13:56:11  glen
 - missing R: webapps
 - add http user to stats group and make /var/lib/mailgraph not world accessible
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mailgraph.spec?r1=1.39&r2=1.40&f=u



More information about the pld-cvs-commit mailing list