wok rev 1208

mysql: bind to localhost by default
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 09 12:21:10 2008 +0000 (2008-08-09)
parents e4e616d63708
children f6a6d0028db1
files mysql/receipt
line diff
     1.1 --- a/mysql/receipt	Sat Aug 09 12:46:16 2008 +0200
     1.2 +++ b/mysql/receipt	Sat Aug 09 12:21:10 2008 +0000
     1.3 @@ -34,6 +34,8 @@
     1.4  	cp -a $_pkg/usr/libexec $fs/usr
     1.5  	cp -a $_pkg/usr/share/mysql $fs/usr/share
     1.6  	cp -a $src/support-files/my-medium.cnf $fs/etc/my.cnf
     1.7 +	grep -q "bind-address" /etc/my.cnf || sed -i \
     1.8 +		's/^\[mysqld\]/[mysqld]\nbind-address\t= 127.0.0.1/' /etc/my.cnf
     1.9  	chmod 600 $fs/etc/my.cnf
    1.10  	cp -a stuff/etc/init.d $fs/etc
    1.11  	cat $src/*.files-list | while read file; do