wok-6.x rev 7889
mysql: fix perms
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 07 10:51:16 2011 +0100 (2011-01-07) |
parents | aeecd083b549 |
children | 267151119db9 |
files | mysql/receipt |
line diff
1.1 --- a/mysql/receipt Fri Jan 07 04:41:36 2011 +0000 1.2 +++ b/mysql/receipt Fri Jan 07 10:51:16 2011 +0100 1.3 @@ -68,11 +68,17 @@ 1.4 # Pre and post install commands for Tazpkg. 1.5 post_install() 1.6 { 1.7 + # addgroup mysql if needed 1.8 + if ! grep -q mysql $1/etc/group; then 1.9 + echo -n "Adding group MySQL..." 1.10 + chroot $1/ /bin/addgroup mysql 1.11 + status 1.12 + fi 1.13 # adduser mysql if needed 1.14 if ! grep -q mysql $1/etc/passwd; then 1.15 echo -n "Adding user MySQL..." 1.16 chroot $1/ /bin/adduser -s /bin/false -h /dev/null \ 1.17 - -g "MySQL Daemon user" -H -D -S mysql 1.18 + -g "MySQL Daemon user" -H -D -S -G mysql mysql 1.19 status 1.20 fi 1.21 chroot $1/ /bin/chown mysql.mysql $(cat $1/$INSTALLED/$PACKAGE/files.list)