wok-current diff webalizer/receipt @ rev 23103
updated libssh and libssh-dev (0.8.7 -> 0.9.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 12 11:22:59 2020 +0100 (2020-03-12) |
parents | b37b128e01b2 |
children | 78bc4b109dd6 |
line diff
1.1 --- a/webalizer/receipt Sun Nov 03 16:24:25 2019 +0100 1.2 +++ b/webalizer/receipt Thu Mar 12 11:22:59 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 }