From 07bbbf43cf6cdeff2d90a3ab49184f345fe7204b Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 11 Dec 2021 09:38:00 -0800 Subject: [PATCH] install: service script --- docker/install-scrypted-dependencies-linux.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/install-scrypted-dependencies-linux.sh b/docker/install-scrypted-dependencies-linux.sh index d2d4b82b2..21edde11d 100755 --- a/docker/install-scrypted-dependencies-linux.sh +++ b/docker/install-scrypted-dependencies-linux.sh @@ -35,15 +35,15 @@ ENV() { source <(curl -s https://raw.githubusercontent.com/koush/scrypted/main/docker/Dockerfile.common) -echo "Installing Scrypted..." -RUN npx -y scrypted install-server - if [ -z "$SERVICE_USER" ] then echo "Scrypted SERVICE_USER environment variable was not specified. Service will not be installed." exit 0 fi +echo "Installing Scrypted..." +RUN sudo -u $SERVICE_USER npx -y scrypted install-server + if [ "$SERVICE_USER" == "root" ] then echo "Scrypted SERVICE_USER root is not allowed."