You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
363 B

#!/usr/bin/env bash
PUID=${PUID:-1000}
PGID=${PGID:-1000}
groupmod -o -g "$PGID" node
usermod -o -u "$PUID" node
find /config \! \( -uid $(id -u node) -gid $(id -g node) \) -print0 | xargs -0r chown node:node
echo "Running Ghostfolio using using user node (uid=$(id -u node)) and group node (gid=$(id -g node))"
su node -g node -c "/ghostfolio/entrypoint.sh"