wok-4.x diff php-pgsql/receipt @ rev 1762

Up: parcellite (0.9)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Nov 25 12:29:05 2008 +0100 (2008-11-25)
parents 41897da4a1db
children 1143af92f66a
line diff
     1.1 --- a/php-pgsql/receipt	Wed Aug 27 18:48:42 2008 +0000
     1.2 +++ b/php-pgsql/receipt	Tue Nov 25 12:29:05 2008 +0100
     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 '/.*=pgsql.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 +}