From c0934805ebbd55dedf4a1b31e9b92b56f612ca60 Mon Sep 17 00:00:00 2001 From: kloczek Date: Fri, 9 Jul 1999 22:22:40 +0000 Subject: [PATCH] - standarized %post, - fix: missing "fi". Changed files: dhcp.spec -> 1.10 --- dhcp.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dhcp.spec b/dhcp.spec index e590176..254e410 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -69,13 +69,16 @@ touch $RPM_BUILD_ROOT/var/state/%{name}/{dhcpd,dhclient}.leases touch /var/state/%{name}/dhcpd.leases if [ -f /var/run/dhcpd.pid ]; then - /etc/rc.d/init.d/dhcpd restart + /etc/rc.d/init.d/dhcpd restart >&2 +else + echo "Run \"/etc/rc.d/init.d/dhcpd start\" to start dhcpd daemon." fi %preun -if [ $1 = 0 ];then - /etc/rc.d/init.d/dhcpd stop +if [ "$1" = "0" ];then /sbin/chkconfig --del dhcpd + /etc/rc.d/init.d/dhcpd stop >&2 +fi %clean rm -rf $RPM_BUILD_ROOT -- 2.44.0