wok-current diff webalizer/receipt @ rev 23693
updated tcsh (6.21.00 -> 6.22.02)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 27 07:08:16 2020 +0100 (2020-04-27) |
parents | b37b128e01b2 |
children | 78bc4b109dd6 |
line diff
1.1 --- a/webalizer/receipt Sun Nov 03 16:24:25 2019 +0100 1.2 +++ b/webalizer/receipt Mon Apr 27 07:08:16 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 }