install: service script

This commit is contained in:
Koushik Dutta
2021-12-11 09:38:00 -08:00
parent 9801c0de89
commit 07bbbf43cf

View File

@@ -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."