SPECS: nut.spec - run ldconfig in post(un) scripts
baggins
baggins at pld-linux.org
Wed Jun 4 14:53:25 CEST 2008
Author: baggins Date: Wed Jun 4 12:53:25 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- run ldconfig in post(un) scripts
---- Files affected:
SPECS:
nut.spec (1.145 -> 1.146)
---- Diffs:
================================================================
Index: SPECS/nut.spec
diff -u SPECS/nut.spec:1.145 SPECS/nut.spec:1.146
--- SPECS/nut.spec:1.145 Wed Jun 4 13:59:24 2008
+++ SPECS/nut.spec Wed Jun 4 14:53:20 2008
@@ -272,6 +272,15 @@
%groupadd -g 76 ups
%useradd -u 70 -d /usr/share/empty -s /bin/false -c "UPS Manager User" -g ups ups
+%post common -p /sbin/ldconfig
+
+%postun common
+/sbin/ldconfig
+if [ "$1" = "0" ]; then
+ %userremove ups
+ %groupremove ups
+fi
+
%post client
/sbin/chkconfig --add upsmon
%service upsmon restart "NUT upsmon daemon"
@@ -282,12 +291,6 @@
/sbin/chkconfig --del upsmon
fi
-%postun common
-if [ "$1" = "0" ]; then
- %userremove ups
- %groupremove ups
-fi
-
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/upscmd
@@ -462,6 +465,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.146 2008-06-04 12:53:20 baggins
+- run ldconfig in post(un) scripts
+
Revision 1.145 2008-06-04 11:59:24 baggins
- rel 2
- finished and enabled neon bcond
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nut.spec?r1=1.145&r2=1.146&f=u
More information about the pld-cvs-commit
mailing list