wok-4.x rev 2369
fix chroot in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 10:53:07 2009 +0000 (2009-03-06) |
parents | 63a9f1a08578 |
children | 735695cf0491 |
files | cyrus-imapd/receipt mysql/receipt postfix/receipt postgresql/receipt |
line diff
1.1 --- a/cyrus-imapd/receipt Thu Mar 05 15:03:26 2009 +0000 1.2 +++ b/cyrus-imapd/receipt Fri Mar 06 10:53:07 2009 +0000 1.3 @@ -55,13 +55,13 @@ 1.4 if ! grep -q cyrus $1/etc/passwd; then 1.5 echo -n "Adding user cyrus..." 1.6 chroot $1/ adduser cyrus -D -H -S -h /tmp 1.7 - chroot $1/ echo "cyrus:cyrus" | chpasswd > /dev/null 1.8 + chroot $1/ sh -c 'echo "cyrus:cyrus" | chpasswd > /dev/null' 1.9 status 1.10 fi 1.11 # addgroup mail if needed 1.12 if ! grep -q mail $1/etc/group; then 1.13 echo -n "Adding group mail..." 1.14 - chroot $1/ addgroup mail && addgroup cyrus mail 1.15 + chroot $1/ sh -c 'addgroup mail && addgroup cyrus mail' 1.16 status 1.17 fi 1.18 chown -R cyrus.mail /var/spool/imap /var/imap
2.1 --- a/mysql/receipt Thu Mar 05 15:03:26 2009 +0000 2.2 +++ b/mysql/receipt Fri Mar 06 10:53:07 2009 +0000 2.3 @@ -62,7 +62,7 @@ 2.4 # addgroup mysql if needed 2.5 if ! grep -q mysql $1/etc/group; then 2.6 echo -n "Adding group mysql..." 2.7 - chroot $1/ /bin/addgroup mysql && /bin/addgroup mysql mysql 2.8 + chroot $1/ sh -c '/bin/addgroup mysql && /bin/addgroup mysql mysql' 2.9 status 2.10 fi 2.11 chroot $1/ /bin/chown mysql.mysql $(cat $1/$INSTALLED/$PACKAGE/files.list)
3.1 --- a/postfix/receipt Thu Mar 05 15:03:26 2009 +0000 3.2 +++ b/postfix/receipt Fri Mar 06 10:53:07 2009 +0000 3.3 @@ -66,7 +66,7 @@ 3.4 # addgroup postfix if needed 3.5 if ! grep -q postfix $1/etc/group; then 3.6 echo -n "Adding group postfix..." 3.7 - chroot $1/ addgroup postfix && addgroup postfix postfix 3.8 + chroot $1/ sh -c 'addgroup postfix && addgroup postfix postfix' 3.9 status 3.10 fi 3.11 # addgroup postdrop if needed
4.1 --- a/postgresql/receipt Thu Mar 05 15:03:26 2009 +0000 4.2 +++ b/postgresql/receipt Fri Mar 06 10:53:07 2009 +0000 4.3 @@ -65,7 +65,7 @@ 4.4 # addgroup postgres if needed 4.5 if ! grep -q postgres $1/etc/group; then 4.6 echo -n "Adding group postgres..." 4.7 - chroot $1/ addgroup postgres && addgroup postgres postgres 4.8 + chroot $1/ sh -c 'addgroup postgres && addgroup postgres postgres' 4.9 status 4.10 fi 4.11 chroot $1/ chown -R postgres.postgres /var/lib/pgsql /var/log/postgresql