wok-6.x rev 1658

Apache: may update /etc/hosts
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 08 13:47:59 2008 +0000 (2008-11-08)
parents 112426c8ff9d
children 22e54ebf9d86
files apache/receipt
line diff
     1.1 --- a/apache/receipt	Sat Nov 08 13:47:07 2008 +0000
     1.2 +++ b/apache/receipt	Sat Nov 08 13:47:59 2008 +0000
     1.3 @@ -22,7 +22,7 @@
     1.4  	grep -q Slitaz config.layout || \
     1.5  		cat ../stuff/slitaz.layout >> config.layout
     1.6  	./configure --mandir=/usr/share/man --enable-mods-shared=all \
     1.7 -		--enable-layout=Slitaz $CONFIGURE_ARGS && \
     1.8 +		--enable-layout=Slitaz $CONFIGURE_ARGS &&
     1.9  	make && make DESTDIR=$PWD/_pkg install
    1.10  }
    1.11  
    1.12 @@ -62,6 +62,8 @@
    1.13  	echo "Processing post-install commands..."
    1.14  	# Just in case.
    1.15  	chown www.www $1/var/log/$PACKAGE
    1.16 +	ping -c 2 $(hostname) > /dev/null 2>&1 || 
    1.17 +		sed -i "s/localhost/$(hostname) localhost/" /etc/hosts
    1.18  	/etc/init.d/$PACKAGE start
    1.19  }
    1.20