mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +00:00
again
This commit is contained in:
parent
cde1e84f98
commit
ceca4a3cff
@ -43,7 +43,9 @@ install:
|
||||
- sudo ./setup/start.sh -v
|
||||
|
||||
script:
|
||||
- sudo sed -i 's|-d|-d -6 -N 1 -n 1|' /etc/systemd/system/multi-user.target.wants/nsd.service
|
||||
- sudo find / -name nsd.service
|
||||
- sudo sed -i 's|-d|-d -4 -p 5053|' /etc/systemd/system/multi-user.target.wants/nsd.service
|
||||
- sudo sed -i 's|-d|-d -4 -p 5053|' /lib/systemd/system/nsd.service
|
||||
- sudo systemctl daemon-reload
|
||||
- sudo systemctl restart nsd
|
||||
- sudo systemctl status -l nsd
|
||||
|
@ -63,7 +63,13 @@ mgmt_rest() {
|
||||
[ -z "$REST_HTTP_CODE" ] && REST_HTTP_CODE="000"
|
||||
|
||||
if [ $code -ne 0 ]; then
|
||||
if [ $code -ne 16 -o $REST_HTTP_CODE -ne 200 ]; then
|
||||
if [ $code -eq 56 -a $REST_HTTP_CODE -eq 200 ]; then
|
||||
# this is okay, I guess. happens sometimes during
|
||||
# POST /admin/mail/aliases/remove
|
||||
# 56=Unexpected EOF
|
||||
record "Ignoring curl return code 56 due to 200 status"
|
||||
|
||||
elif [ $code -ne 16 -o $REST_HTTP_CODE -ne 200 ]; then
|
||||
REST_ERROR="CURL failed with code $code"
|
||||
record "${F_DANGER}$REST_ERROR${F_RESET}"
|
||||
record "$output"
|
||||
|
Loading…
Reference in New Issue
Block a user