Skip to content

Commit

Permalink
install: SCRYPTED_LXC env automatically installs more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Oct 10, 2024
1 parent a0c3721 commit 0e4a94c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install/docker/install-scrypted-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
if [ "$SCRYPTED_LXC" ]
then
export SERVICE_USER="root"
export SCRYPTED_NONINTERACTIVE="true"
fi

if [ -z "$SERVICE_USER" ]
Expand Down Expand Up @@ -62,6 +63,11 @@ then
usermod -aG docker $SERVICE_USER
fi

if [ "$SCRYPTED_LXC" ]
then
curl https://raw.githubusercontent.com/koush/scrypted/refs/heads/main/install/docker/install-nvidia-container-toolkit.sh | bash
fi

WATCHTOWER_HTTP_API_TOKEN=$(echo $RANDOM | md5sum | head -c 32)
echo "WATCHTOWER_HTTP_API_TOKEN=$WATCHTOWER_HTTP_API_TOKEN" > $SCRYPTED_HOME/.env
# remove the following line from .env to disable autoupdates.
Expand Down

0 comments on commit 0e4a94c

Please sign in to comment.