From 58dde1ce2332ac1f6efdc543adebe1c18e267475 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Mon, 5 Sep 2022 17:46:59 -0400 Subject: [PATCH] launching from the same directory as before the change --- management/wsgi.py | 2 +- setup/management.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/management/wsgi.py b/management/wsgi.py index 9cf21c4b..2cad5f44 100644 --- a/management/wsgi.py +++ b/management/wsgi.py @@ -1,4 +1,4 @@ -from daemon import app +from management.daemon import app import utils app.logger.addHandler(utils.create_syslog_handler()) diff --git a/setup/management.sh b/setup/management.sh index 95bd8b1d..5af4474a 100755 --- a/setup/management.sh +++ b/setup/management.sh @@ -99,8 +99,7 @@ export LANG=en_US.UTF-8 export LC_TYPE=en_US.UTF-8 source $venv/bin/activate -cd $(pwd)/management -exec gunicorn -b localhost:10222 -w 2 wsgi:app +exec gunicorn -b localhost:10222 -w 2 management.wsgi:app EOF 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