mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-06 00:37:06 +00:00
again
This commit is contained in:
parent
c0a2e048b3
commit
8d033a4bdd
@ -103,6 +103,13 @@ mgmt_create_user() {
|
|||||||
record "[create user $email]"
|
record "[create user $email]"
|
||||||
mgmt_rest POST /admin/mail/users/add "email=$email" "password=$pass"
|
mgmt_rest POST /admin/mail/users/add "email=$email" "password=$pass"
|
||||||
rc=$?
|
rc=$?
|
||||||
|
if echo "$REST_OUTPUT" | grep "updated DNS:" >/dev/null; then
|
||||||
|
record "[Detected dns update]"
|
||||||
|
systemctl status nsd.service >>$TEST_OF
|
||||||
|
record "Sleeping 5 seconds for services to start"
|
||||||
|
sleep 5
|
||||||
|
systemctl status nsd.service >>$TEST_OF
|
||||||
|
fi
|
||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user