mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-04-15 23:47:24 +02:00
Fix issue in management daemon name resolution (#2561)
In some scenarios localhost resolves to the external ip. Adapted management daemon to reflect check performed in `start.sh`
This commit is contained in:
@@ -101,7 +101,7 @@ chmod 640 /var/lib/mailinabox/api.key
|
|||||||
|
|
||||||
source $venv/bin/activate
|
source $venv/bin/activate
|
||||||
export PYTHONPATH=$PWD/management
|
export PYTHONPATH=$PWD/management
|
||||||
exec gunicorn -b localhost:10222 -w 1 --timeout 630 wsgi:app
|
exec gunicorn -b 127.0.0.1:10222 -w 1 --timeout 630 wsgi:app
|
||||||
EOF
|
EOF
|
||||||
chmod +x $inst_dir/start
|
chmod +x $inst_dir/start
|
||||||
cp --remove-destination conf/mailinabox.service /lib/systemd/system/mailinabox.service # target was previously a symlink so remove it first
|
cp --remove-destination conf/mailinabox.service /lib/systemd/system/mailinabox.service # target was previously a symlink so remove it first
|
||||||
|
|||||||
Reference in New Issue
Block a user