mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 00:39:56 +00:00
install: service script
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user