1
1
Fork 0
mirror of https://github.com/zadam/trilium.git synced 2025-01-21 22:51:22 +08:00
trilium/start-docker.sh

8 lines
280 B
Bash
Raw Normal View History

#!/bin/sh
[[ ! -z "${USER_UID}" ]] && usermod -u ${USER_UID} node || echo "No USER_UID specified, leaving 1000"
[[ ! -z "${USER_GID}" ]] && groupmod -g ${USER_GID} node || echo "No USER_GID specified, leaving 1000"
chown -R node:node /home/node
exec su-exec node node ./src/www