mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Merge pull request #316 from TriliumNext/update-start-docker
Update start-docker.sh to be more distro-agnostic
This commit is contained in:
commit
9d5966819b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user