From 38f02d9aa2ddc20fdcdafbcd9f51af11133781dc Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Sun, 25 Feb 2024 19:52:46 +0100 Subject: [PATCH] handled backward compatibility better --- files/runScanner.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/files/runScanner.sh b/files/runScanner.sh index 19b65a6..1452a4d 100755 --- a/files/runScanner.sh +++ b/files/runScanner.sh @@ -87,12 +87,12 @@ echo "setting up webserver:" #-------------------------------------------------------- #backwards compatibility -WEBSERVER_ENABLE="$WEBSERVER" -WEBSERVER_PORT="$PORT" -WEBSERVER_LABEL_SCANTOFILE="$RENAME_GUI_SCANTOFILE" -WEBSERVER_LABEL_SCANTOEMAIL="$RENAME_GUI_SCANTOEMAIL" -WEBSERVER_LABEL_SCANTOIMAGE="$RENAME_GUI_SCANTOIMAGE" -WEBSERVER_LABEL_SCANTOOCR="$RENAME_GUI_SCANTOOCR" +WEBSERVER_ENABLE="${WEBSERVER_ENABLE:-$WEBSERVER}" +WEBSERVER_PORT="${WEBSERVER_PORT:-$PORT}" +WEBSERVER_LABEL_SCANTOFILE="${WEBSERVER_LABEL_SCANTOFILE:-$RENAME_GUI_SCANTOFILE}" +WEBSERVER_LABEL_SCANTOEMAIL="${WEBSERVER_LABEL_SCANTOEMAIL:-$RENAME_GUI_SCANTOEMAIL}" +WEBSERVER_LABEL_SCANTOIMAGE="${WEBSERVER_LABEL_SCANTOIMAGE:-$RENAME_GUI_SCANTOIMAGE}" +WEBSERVER_LABEL_SCANTOOCR="${WEBSERVER_LABEL_SCANTOOCR:-$RENAME_GUI_SCANTOOCR}" if [ "${DISABLE_GUI_SCANTOFILE:-false}" ]; then WEBSERVER_LABEL_SCANTOFILE="" fi