Removed useless echo in virtual file.

This commit is contained in:
GAVARD Ewann 2015-08-07 09:19:38 +02:00
parent b70f9ee3fb
commit 3f3fcb2a6e

View file

@ -6,7 +6,6 @@ echo "Regenerating postfix 'vmailbox' and 'virtual' for given users"
# rm /etc/postfix/vmailbox # rm /etc/postfix/vmailbox
# rm /etc/postfix/vmailbox.db # rm /etc/postfix/vmailbox.db
echo "# WARNING: this file is auto-generated. Modify accounts.cf in postfix directory on host" > /etc/postfix/vmailbox echo "# WARNING: this file is auto-generated. Modify accounts.cf in postfix directory on host" > /etc/postfix/vmailbox
echo "# WARNING: this file is auto-generated. Modify redirects.cf in postfix directory on host" > /etc/postfix/virtual
# Creating users # Creating users
while IFS=$'|' read -r login pass while IFS=$'|' read -r login pass
do do
@ -27,8 +26,9 @@ do
done < /tmp/postfix/accounts.cf done < /tmp/postfix/accounts.cf
makeuserdb makeuserdb
#creating virtuals and redirects #copying virtual file
cp /tmp/postfix/virtual /etc/postfix/virtual cp /tmp/postfix/virtual /etc/postfix/virtual
echo "Postfix configurations" echo "Postfix configurations"
postmap /etc/postfix/vmailbox postmap /etc/postfix/vmailbox
postmap /etc/postfix/virtual postmap /etc/postfix/virtual