Merge pull request #316 from TriliumNext/update-start-docker

Update start-docker.sh to be more distro-agnostic
This commit is contained in:
Elian Doran 2024-08-09 01:22:51 +03:00 committed by GitHub
commit 9d5966819b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -10,8 +10,8 @@ cat package.json | grep -v electron > server-package.json
echo "Compiling typescript..."
npx tsc
sudo docker build -t triliumnext/notes:$VERSION --network host -t zadam/trilium:$SERIES .
sudo docker build -t triliumnext/notes:$VERSION --network host -t triliumnext/notes:$SERIES .
if [[ $VERSION != *"beta"* ]]; then
sudo docker tag zadam/trilium:$VERSION zadam/trilium:latest
sudo docker tag triliumnext/notes:$VERSION triliumnext/notes:latest
fi

View File

@ -4,4 +4,4 @@
[[ ! -z "${USER_GID}" ]] && groupmod -og ${USER_GID} node || echo "No USER_GID specified, leaving 1000"
chown -R node:node /home/node
exec gosu node node ./src/www
exec su -c "node ./src/www" node