wok diff php-mysql/receipt @ rev 1770
busybox udhcpc/zcip: call /etc/ip*.d scripts
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 26 18:02:56 2008 +0000 (2008-11-26) |
parents | 41897da4a1db |
children | 1143af92f66a |
line diff
1.1 --- a/php-mysql/receipt Wed Aug 27 18:48:42 2008 +0000 1.2 +++ b/php-mysql/receipt Wed Nov 26 18:02:56 2008 +0000 1.3 @@ -46,3 +46,18 @@ 1.4 EOT 1.5 } 1.6 1.7 +# Pre and post remove commands for Tazpkg. 1.8 +pre_remove() 1.9 +{ 1.10 + sed -i '/.*=mysql.so.*/d' /etc/php.ini 1.11 + 1.12 + # Start Web server. 1.13 + while read daemon file; do 1.14 + if [ -f /etc/init.d/$daemon -a ! -f "/var/run/$file" ]; then 1.15 + /etc/init.d/$daemon start 1.16 + fi 1.17 + done <<EOT 1.18 +apache apache/httpd.pid 1.19 +lighttpd lighttpd.pid 1.20 +EOT 1.21 +}