wok diff mysql/receipt @ rev 7941
slitaz-mercurial-style: add missing icon and some fixes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 12 00:31:56 2011 +0100 (2011-01-12) |
parents | 3702eaf342dd |
children | 93342cc572ff |
line diff
1.1 --- a/mysql/receipt Wed Dec 15 20:31:38 2010 +0000 1.2 +++ b/mysql/receipt Wed Jan 12 00:31:56 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)