wok-6.x diff cyrus-imapd/receipt @ rev 20354
Up e2fsprogs (1.44.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 09 16:13:52 2018 +0200 (2018-06-09) |
parents | c8f848a49bc1 |
children | aaa3fcf79cf3 |
line diff
1.1 --- a/cyrus-imapd/receipt Mon Dec 21 23:38:11 2015 +0100 1.2 +++ b/cyrus-imapd/receipt Sat Jun 09 16:13:52 2018 +0200 1.3 @@ -52,6 +52,7 @@ 1.4 { 1.5 # adduser cyrus if needed 1.6 if ! grep -q cyrus "$1/etc/passwd"; then 1.7 + echo 1.8 echo -n "Adding user cyrus..." 1.9 chroot "$1/" adduser cyrus -D -H -S -h /tmp 1.10 chroot "$1/" sh -c 'echo "cyrus:cyrus" | chpasswd -m > /dev/null' 1.11 @@ -59,6 +60,7 @@ 1.12 fi 1.13 # addgroup mail if needed 1.14 if ! grep -q mail "$1/etc/group"; then 1.15 + echo 1.16 echo -n "Adding group mail..." 1.17 chroot "$1/" sh -c 'addgroup mail && addgroup cyrus mail' 1.18 status 1.19 @@ -84,6 +86,7 @@ 1.20 [ "$1" ] || /etc/init.d/$PACKAGE start 1.21 if [ -f "$1/etc/init.d/postfix" ]; then 1.22 if ! grep -v ^# "$1/etc/postfix/main.cf" | grep -q lmtp:unix; then 1.23 + echo 1.24 echo "Append to /etc/postfix/main.cf:" 1.25 echo -n " " 1.26 echo "mailbox_transport = lmtp:unix:/var/imap/socket/lmtp" | \ 1.27 @@ -93,9 +96,9 @@ 1.28 fi 1.29 fi 1.30 fi 1.31 - msg="Creating mailbox for" 1.32 + msg="\\nCreating mailbox for" 1.33 for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd"); do 1.34 - echo -n "$msg $i" 1.35 + echo -en "$msg $i" 1.36 msg="," 1.37 done 1.38 echo ""