From: saq Date: Wed, 25 Jul 2001 22:51:57 +0000 (+0000) Subject: - replace non-existent %chkconfig_{post,preun} macros with X-Git-Url: http://git.pld-linux.org/?p=packages%2FPowerChutePlus.git;a=commitdiff_plain;h=85a3f700ef67ad42f9750478047b8ebb2ac97ef2 - replace non-existent %chkconfig_{post,preun} macros with %chkconfig_{add,del} (thanks qboosh) Changed files: PowerChutePlus.spec -> 1.5 --- diff --git a/PowerChutePlus.spec b/PowerChutePlus.spec index 062b8f3..91b7aee 100644 --- a/PowerChutePlus.spec +++ b/PowerChutePlus.spec @@ -86,14 +86,14 @@ USER=pwrchute; UID=68; HOMEDIR=/dev/null; COMMENT="PowerChute Plus" %useradd %post -NAME=upsd; DESC="UPSd server"; %chkconfig_post +NAME=upsd; DESC="UPSd server"; %chkconfig_add cd %{_libdir}/powerchute ./machine_id echo "You should run %{_libdir}/powerchute/Config.sh to configure PowerChute plus" echo "Remember to set the password for pwrchute account" %preun -NAME=upsd; %chkconfig_preun +NAME=upsd; %chkconfig_del %postun USER=pwrchute; %userdel