Skip to content

Commit

Permalink
handled backward compatibility better
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMundhenk committed Feb 25, 2024
1 parent 68f074e commit 38f02d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions files/runScanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38f02d9

Please sign in to comment.