]> git.pld-linux.org Git - packages/nagios-plugin-check_raid.git/blobdiff - nagios-plugin-check_raid.spec
make scriptlets debian compatible (via alien)
[packages/nagios-plugin-check_raid.git] / nagios-plugin-check_raid.spec
index 4fe4b1884d6854ccf63b7cdf5584d7f00a652b64..c4b24aec04d9cc3d3bf265a560b07cf989e63777 100644 (file)
@@ -115,12 +115,12 @@ rm -rf $RPM_BUILD_ROOT
 # - if separate config file is used
 grep -q '^#includedir /etc/sudoers\.d' /etc/sudoers && confd=1
 
-if [ "$1" = 1 -o "$confd" = 1 ]; then
+if [ "$1" = 1 ] || [ "$1" = "configure" ] || [ "$confd" = 1 ]; then
        %{plugindir}/%{plugin} -S || :
 fi
 
 %postun
-if [ "$1" = 0 ]; then
+if [ "$1" = "0" ] || [ "$1" = "remove" ]; then
        # remove all sudo rules related to us
        %{__sed} -i -e '/CHECK_RAID/d' /etc/sudoers
 fi
This page took 0.06386 seconds and 4 git commands to generate.