SPECS: proftpd-mod_shaper.spec - always proftpd reload on upgrade

glen glen at pld-linux.org
Sat Apr 29 16:05:19 CEST 2006


Author: glen                         Date: Sat Apr 29 14:05:19 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- always proftpd reload on upgrade

---- Files affected:
SPECS:
   proftpd-mod_shaper.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/proftpd-mod_shaper.spec
diff -u SPECS/proftpd-mod_shaper.spec:1.2 SPECS/proftpd-mod_shaper.spec:1.3
--- SPECS/proftpd-mod_shaper.spec:1.2	Sat Apr 29 15:58:04 2006
+++ SPECS/proftpd-mod_shaper.spec	Sat Apr 29 16:05:11 2006
@@ -11,6 +11,7 @@
 URL:		http://www.castaglia.org/proftpd/modules/mod_shaper.html
 BuildRequires:	proftpd-devel
 BuildRequires:	rpmbuild(macros) >= 1.268
+Requires(post,postun):	grep
 Requires:	proftpd >= 1:1.3.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -41,12 +42,10 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ "$1" = "1" ]; then
-	if grep -iEqs "^ServerType[[:space:]]+inetd" %{_sysconfdir}/proftpd.conf; then
-		%service -q rc-inetd reload
-	elif grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf; then
-		%service -q proftpd restart
-	fi
+if grep -iEqs "^ServerType[[:space:]]+inetd" %{_sysconfdir}/proftpd.conf; then
+	%service -q rc-inetd reload
+elif grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf; then
+	%service -q proftpd restart
 fi
 
 %postun
@@ -69,6 +68,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/04/29 14:05:11  glen
+- always proftpd reload on upgrade
+
 Revision 1.2  2006/04/29 13:58:04  glen
 - builds now
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/proftpd-mod_shaper.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list