From de39f7a224ce037cce726d8aba134c6c8484b249 Mon Sep 17 00:00:00 2001 From: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com> Date: Wed, 22 Nov 2023 16:19:01 +0100 Subject: [PATCH] chore: fix mjpg-streamer directory check Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com> --- tools/libs/core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/core.sh b/tools/libs/core.sh index a9801e9d..a066c20c 100755 --- a/tools/libs/core.sh +++ b/tools/libs/core.sh @@ -287,7 +287,7 @@ dietpi_cs_settings() { detect_existing_webcamd() { local disable msg "Checking for mjpg-streamer ...\n" - if [[ -x "/usr/local/bin/webcamd" ]] && [[ -d "${HOME}/mjpg-streamer" ]]; then + if [[ -x "/usr/local/bin/webcamd" ]] && [[ -d "/home/${BASE_USER}/mjpg-streamer" ]]; then msg "Found an existing mjpg-streamer installation!" msg "This should be stopped and disabled!" while true; do