From 7112fa6ee5b8246fd892f447f13bd3e5d4b52d81 Mon Sep 17 00:00:00 2001 From: MarvinDo Date: Mon, 30 Oct 2023 10:57:17 +0100 Subject: [PATCH] bugfix --- src/frontend_celery/start_celery.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/frontend_celery/start_celery.sh b/src/frontend_celery/start_celery.sh index f4f3da53..4952635c 100755 --- a/src/frontend_celery/start_celery.sh +++ b/src/frontend_celery/start_celery.sh @@ -15,7 +15,7 @@ helpFunction() exit 1 # Exit script after printing help } -while getopts "w:" opt +while getopts "w:h:" opt do case "$opt" in w ) we="$OPTARG" ;; @@ -32,12 +32,16 @@ then fi # set home for production environment. In systemd $HOME is not available but required for VEP -if [ -n "$localhome"] -then - echo set home to $localhome - export HOME=$localhome +if [ -n "$localhome" ]; then + echo set home to $localhome; + export HOME=$localhome +else + echo "Home was not supplied. Keeping default." fi + +echo HOME: $HOME + echo "preparing celery startup"