wok diff lighttpd-ssl/receipt @ rev 1905
apache,lighttpd*: ensure only one web server is running
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 21 10:51:14 2008 +0000 (2008-12-21) |
parents | 3a8e5b10ee64 |
children | b42847caa337 |
line diff
1.1 --- a/lighttpd-ssl/receipt Sun Nov 30 16:45:49 2008 +0000 1.2 +++ b/lighttpd-ssl/receipt Sun Dec 21 10:51:14 2008 +0000 1.3 @@ -97,8 +97,6 @@ 1.4 } 1.5 post_install() 1.6 { 1.7 - local root 1.8 - root=$1 1.9 echo "Processing post-install commands..." 1.10 if [ ! -f $1/etc/ssl/lighttpd/lighttpd.pem ]; then 1.11 openssl req -new -x509 \ 1.12 @@ -115,6 +113,11 @@ 1.13 EOT 1.14 fi 1.15 # Just in case. 1.16 - chown www.www $root/var/log/lighttpd 1.17 - /etc/init.d/lighttpd start 1.18 + chown www.www $1/var/log/lighttpd 1.19 + if [ -z "$1" ]; then 1.20 + for i in apache ; do 1.21 + [ -f /etc/init.d/$i ] && /etc/init.d/$i stop 1.22 + done 1.23 + /etc/init.d/$PACKAGE start 1.24 + fi 1.25 }