[packages/vsftpd] restart vsftpd if glibc is upgraded or downgraded
glen
glen at pld-linux.org
Thu Jan 22 22:19:15 CET 2015
commit 5c1aee6ecfffba06e90552bcca01250c94916e7a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Jan 22 23:18:56 2015 +0200
restart vsftpd if glibc is upgraded or downgraded
vsftpd.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/vsftpd.spec b/vsftpd.spec
index 76dc55e..65404d7 100644
--- a/vsftpd.spec
+++ b/vsftpd.spec
@@ -10,7 +10,7 @@ Summary(pl.UTF-8): Bardzo Bezpieczny Demon FTP
Summary(pt_BR.UTF-8): vsftpd - Daemon FTP Muito Seguro
Name: vsftpd
Version: 3.0.2
-Release: 2
+Release: 3
License: GPL v2
Group: Daemons
Source0: https://security.appspot.com/downloads/%{name}-%{version}.tar.gz
@@ -154,6 +154,12 @@ if [ "$1" = "0" ]; then
/sbin/chkconfig --del %{name}
fi
+%triggerin standalone -- glibc
+# restart vsftpd if glibc is upgraded or downgraded
+if [ "$2" != 1 ]; then
+ %service -q vsftpd restart
+fi
+
%files
%defattr(644,root,root,755)
%doc AUDIT BENCHMARKS BUGS Changelog FAQ README README.ssl REWARD SIZE SPEED TODO TUNING EXAMPLE SECURITY
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vsftpd.git/commitdiff/5c1aee6ecfffba06e90552bcca01250c94916e7a
More information about the pld-cvs-commit
mailing list