wok-6.x rev 2350
Cyrus-imapd: set passwd for cyrus user
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 04 16:34:19 2009 +0000 (2009-03-04) |
parents | 992291a415ab |
children | a11dd6a8f1a4 |
files | cyrus-imapd/receipt cyrus-imapd/stuff/etc/init.d/cyrus-imapd |
line diff
1.1 --- a/cyrus-imapd/receipt Wed Mar 04 15:01:26 2009 +0000 1.2 +++ b/cyrus-imapd/receipt Wed Mar 04 16:34:19 2009 +0000 1.3 @@ -55,7 +55,7 @@ 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 - echo "cyrus:cyrus" | chpasswd > /dev/null 1.8 + chroot $1/ echo "cyrus:cyrus" | chpasswd > /dev/null 1.9 status 1.10 fi 1.11 # addgroup mail if needed
2.1 --- a/cyrus-imapd/stuff/etc/init.d/cyrus-imapd Wed Mar 04 15:01:26 2009 +0000 2.2 +++ b/cyrus-imapd/stuff/etc/init.d/cyrus-imapd Wed Mar 04 16:34:19 2009 +0000 2.3 @@ -21,15 +21,17 @@ 2.4 echo "$NAME already running." 2.5 exit 1 2.6 fi 2.7 - dir=$(grep configdirectory /etc/imapd.conf | awk '{ print $2 }') 2.8 + dir=$(grep ^configdirectory /etc/imapd.conf | awk '{ print $2 }') 2.9 if [ -f $dir/mailboxes.db ]; then 2.10 echo -n "Initialize $DESC: " 2.11 + /usr/cyrus/bin/mkimap 2.12 for i in user quota ; do 2.13 for j in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do 2.14 [ -d $dir/$i/$j ] || mkdir -p $dir/$i/$j 2.15 done 2.16 done 2.17 chown -R cyrus:mail $dir 2.18 + chmod 750 $dir 2.19 su cyrus -c "/usr/cyrus/bin/ctl_cyrusdb -r" 2.20 su cyrus -c "/usr/cyrus/bin/reconstruct" 2.21 status