From 2a852922d26de8927efbebb150812997db5feb67 Mon Sep 17 00:00:00 2001 From: zebrapurring <> Date: Fri, 20 Dec 2024 15:30:17 +0100 Subject: [PATCH] Fix root user detection --- Scripts/installdependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/installdependencies.sh b/Scripts/installdependencies.sh index d6c3673..d0aa568 100755 --- a/Scripts/installdependencies.sh +++ b/Scripts/installdependencies.sh @@ -5,7 +5,7 @@ set -eux echo "INFO: install dependencies" # Install root dependencies -if [ "$USER" = "root" ]; then +if [ "$(whoami)" = "root" ]; then mkdir -p "$IMMICH_BIN_DIR" # Install custom ffmpeg build jellyfin-ffmpeg