wok diff phpmyadmin/receipt @ rev 15649
Up: hubbub (0.1.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 10 16:06:02 2013 +0000 (2013-12-10) |
parents | 78cb1e930abd |
children | d51b2411e55e |
line diff
1.1 --- a/phpmyadmin/receipt Sat Sep 07 15:59:12 2013 +0000 1.2 +++ b/phpmyadmin/receipt Tue Dec 10 16:06:02 2013 +0000 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