Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
f8bc88f0
Commit
f8bc88f0
authored
Nov 14, 2015
by
Florian Schaal
Browse files
FS#4017 - mailman issues with postmap
parent
c8679f3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/mailman_plugin.inc.php
View file @
f8bc88f0
...
...
@@ -73,7 +73,15 @@ class mailman_plugin {
$this
->
update_config
();
exec
(
"nohup /usr/lib/mailman/bin/newlist -u "
.
escapeshellcmd
(
$data
[
"new"
][
"domain"
])
.
" -e "
.
escapeshellcmd
(
$data
[
"new"
][
"domain"
])
.
" "
.
escapeshellcmd
(
$data
[
"new"
][
"listname"
])
.
" "
.
escapeshellcmd
(
$data
[
"new"
][
"email"
])
.
" "
.
escapeshellcmd
(
$data
[
"new"
][
"password"
])
.
" >/dev/null 2>&1 &"
);
$pid
=
exec
(
"nohup /usr/lib/mailman/bin/newlist -u "
.
escapeshellcmd
(
$data
[
"new"
][
"domain"
])
.
" -e "
.
escapeshellcmd
(
$data
[
"new"
][
"domain"
])
.
" "
.
escapeshellcmd
(
$data
[
"new"
][
"listname"
])
.
" "
.
escapeshellcmd
(
$data
[
"new"
][
"email"
])
.
" "
.
escapeshellcmd
(
$data
[
"new"
][
"password"
])
.
" >/dev/null 2>&1 & echo $!;"
);
// wait for /usr/lib/mailman/bin/newlist-call
$running
=
true
;
do
{
exec
(
'ps -p '
.
intval
(
$pid
),
$out
);
if
(
count
(
$out
)
==
1
)
$running
=
false
;
else
sleep
(
1
);
unset
(
$out
);
}
while
(
$running
);
unset
(
$out
);
if
(
is_file
(
'/var/lib/mailman/data/virtual-mailman'
))
exec
(
'postmap /var/lib/mailman/data/virtual-mailman'
);
if
(
is_file
(
'/var/lib/mailman/data/transport-mailman'
))
exec
(
'postmap /var/lib/mailman/data/transport-mailman'
);
exec
(
'nohup '
.
$conf
[
'init_scripts'
]
.
'/'
.
'mailman reload >/dev/null 2>&1 &'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment