浏览代码

Subscribe the user to the public mailing list

Bob Mottram 10 年前
父节点
当前提交
286af73995
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8
    1
      install-freedombone.sh

+ 8
- 1
install-freedombone.sh 查看文件

1705
   apt-get -y --force-yes install mlmmj
1705
   apt-get -y --force-yes install mlmmj
1706
   adduser --system mlmmj
1706
   adduser --system mlmmj
1707
 
1707
 
1708
+  echo ''
1709
+  echo "Creating the $PUBLIC_MAILING_LIST mailing list"
1710
+  echo ''
1711
+
1708
   # create the list
1712
   # create the list
1709
-  mlmmj-make-ml -a -L "$PUBLIC_MAILING_LIST" -c mlmmj -z
1713
+  mlmmj-make-ml -a -L "$PUBLIC_MAILING_LIST" -c mlmmj
1710
 
1714
 
1711
   echo 'mlmmj_router:' > /etc/exim4/conf.d/router/750_exim4-config_mlmmj
1715
   echo 'mlmmj_router:' > /etc/exim4/conf.d/router/750_exim4-config_mlmmj
1712
   echo '  driver = accept' >> /etc/exim4/conf.d/router/750_exim4-config_mlmmj
1716
   echo '  driver = accept' >> /etc/exim4/conf.d/router/750_exim4-config_mlmmj
1747
   service exim4 restart
1751
   service exim4 restart
1748
   newaliases
1752
   newaliases
1749
 
1753
 
1754
+  # subscribe the user to the list
1755
+  mlmmj-sub -L /var/spool/mlmmj/$PUBLIC_MAILING_LIST -a $MY_USERNAME@$DOMAIN_NAME
1756
+
1750
   mailinglistrule $MY_USERNAME "$PUBLIC_MAILING_LIST" "$PUBLIC_MAILING_LIST"
1757
   mailinglistrule $MY_USERNAME "$PUBLIC_MAILING_LIST" "$PUBLIC_MAILING_LIST"
1751
 
1758
 
1752
   echo 'create_public_mailing_list' >> $COMPLETION_FILE
1759
   echo 'create_public_mailing_list' >> $COMPLETION_FILE