update mailman path to use virtualenv

master
Max Erenberg 1 year ago
parent 2a7777b59e
commit 0c6dc18085
  1. 2
      ceo/urwid/newmember.py
  2. 6
      debian/changelog
  3. 2
      src/op-mailman

@ -225,7 +225,7 @@ class EndPage(WizardPanel):
members.register(self.state['userid'], self.state['terms'])
mailman_result = members.subscribe_to_mailing_list(self.state['userid'])
if mailman_result.split(': ',1)[0] not in ('Subscribed', 'Already a member', 'Disabled'):
if mailman_result != 'None':
problem = mailman_result
elif self.utype == 'clubuser':

6
debian/changelog vendored

@ -1,3 +1,9 @@
ceo (0.7.1-buster1) buster; urgency=medium
* Update mailman path to use virtualenv
-- Max Erenberg <merenber@csclub.uwaterloo.ca> Tue, 18 May 2021 01:45:49 -0400
ceo (0.7.0-buster1) buster; urgency=medium
* Set userPassword field in LDAP for SASL authentication

@ -32,7 +32,7 @@ def main():
return
if remote_user == user_to_add or check_group(remote_user, 'office') or check_group(remote_user, 'syscom'):
mailman = Popen(["/usr/bin/mailman", "members", "-a", "-", "%s@%s" % (cfg['members_list'], cfg['list_domain'])],
mailman = Popen(["/opt/mailman3/bin/mailman", "addmembers", "-", "%s@%s" % (cfg['members_list'], cfg['list_domain'])],
stdin=PIPE, stdout=PIPE, stderr=STDOUT)
out, err = mailman.communicate("%s@%s\n" % (user_to_add, cfg['list_domain']))
syslog.syslog(syslog.LOG_INFO, out)

Loading…
Cancel
Save