From 1a16492e7d561b6ebdfaca64a5c81c3c1535a7a4 Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Sun, 25 Feb 2024 13:43:41 +0100 Subject: [PATCH] added more backwards compatibility --- files/runScanner.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/files/runScanner.sh b/files/runScanner.sh index b05d134..2dc4244 100755 --- a/files/runScanner.sh +++ b/files/runScanner.sh @@ -88,6 +88,22 @@ 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" +if [ "${DISABLE_GUI_SCANTOFILE:-false}" ]; then + WEBSERVER_LABEL_SCANTOFILE="" +fi +if [ "${DISABLE_GUI_SCANTOEMAIL:-false}" ]; then + WEBSERVER_LABEL_SCANTOEMAIL="" +fi +if [ "${DISABLE_GUI_SCANTOIMAGE:-false}" ]; then + WEBSERVER_LABEL_SCANTOIMAGE="" +fi +if [ "${DISABLE_GUI_SCANTOOCR:-false}" ]; then + WEBSERVER_LABEL_SCANTOOCR="" +fi if [ "${WEBSERVER_ENABLE:-$WEBSERVER_DEFAULT}" ]; then