wok-current diff webalizer/receipt @ rev 23286

updated perl-algorithm-permute (0.12 -> 0.16)
author Hans-G?nter Theisgen
date Sun Mar 29 14:45:23 2020 +0100 (2020-03-29)
parents b37b128e01b2
children 78bc4b109dd6
line diff
     1.1 --- a/webalizer/receipt	Sun Nov 03 16:24:25 2019 +0100
     1.2 +++ b/webalizer/receipt	Sun Mar 29 14:45:23 2020 +0100
     1.3 @@ -50,6 +50,17 @@
     1.4  }
     1.5  
     1.6  # Pre and post install commands for Tazpkg.
     1.7 +pre_remove()
     1.8 +{
     1.9 +	sed -i '/webalizer/d' "$1/etc/init.d/local.sh"
    1.10 +	if [ -z "$1" ]
    1.11 +	  then
    1.12 +		crontab -l 2> /dev/null | grep -q webalizer || crontab - << EOT
    1.13 +$(crontab -l 2> /dev/null | grep -v webalizer)
    1.14 +EOT
    1.15 +	fi
    1.16 +}
    1.17 +
    1.18  post_install()
    1.19  {
    1.20  	grep -q webalizer "$1/etc/init.d/local.sh" || \
    1.21 @@ -64,5 +75,6 @@
    1.22  $(crontab -l 2> /dev/null)
    1.23  $(cat /etc/initcron.d/webalizer)
    1.24  EOT
    1.25 +	  chmod -x /etc/initcron.d/webalizer
    1.26  	fi
    1.27  }