Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 9d59668

Browse files
authored
Merge pull request #316 from TriliumNext/update-start-docker
Update start-docker.sh to be more distro-agnostic
2 parents 50a6a1f + 13ad877 commit 9d59668

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/build-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ cat package.json | grep -v electron > server-package.json
1010
echo "Compiling typescript..."
1111
npx tsc
1212

13-
sudo docker build -t triliumnext/notes:$VERSION --network host -t zadam/trilium:$SERIES .
13+
sudo docker build -t triliumnext/notes:$VERSION --network host -t triliumnext/notes:$SERIES .
1414

1515
if [[ $VERSION != *"beta"* ]]; then
16-
sudo docker tag zadam/trilium:$VERSION zadam/trilium:latest
16+
sudo docker tag triliumnext/notes:$VERSION triliumnext/notes:latest
1717
fi

start-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
[[ ! -z "${USER_GID}" ]] && groupmod -og ${USER_GID} node || echo "No USER_GID specified, leaving 1000"
55

66
chown -R node:node /home/node
7-
exec gosu node node ./src/www
7+
exec su -c "node ./src/www" node

0 commit comments

Comments
 (0)