wok diff phpmyadmin/receipt @ rev 15390

Up slitaz-boot-scripts (5.3.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 30 18:29:11 2013 +0100 (2013-10-30)
parents 78cb1e930abd
children d51b2411e55e
line diff
     1.1 --- a/phpmyadmin/receipt	Sat Sep 07 15:59:12 2013 +0000
     1.2 +++ b/phpmyadmin/receipt	Wed Oct 30 18:29:11 2013 +0100
     1.3 @@ -44,6 +44,9 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 +	secret=$(dd if=/dev/urandom count=1 2> /dev/null | md5sum | sed 's/ .*//')
     1.8 +	sed -i "s/^\(.*blowfish_secret'] = '\)'/\1$secret'/" \
     1.9 +		$1/etc/phpmyadmin/config.inc.php
    1.10  	# Configure lighttpd server
    1.11  	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    1.12  		if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then