update mailman path to use virtualenv
This commit is contained in:
parent
2a7777b59e
commit
0c6dc18085
|
@ -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':
|
||||
|
|
|
@ -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…
Reference in New Issue