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.
uptime-kuma/docker/scripts/init.sh

13 lines
236 B

#!/bin/bash
PUID=${PUID:-1000}
PGID=${PGID:-1000}
groupmod -o -g "$PGID" node
usermod -o -u "$PUID" node
echo "node has uid: $(id -u node) and gid: $(id -g node)"
echo "dropping to node user"
exec sudo -u node node server/server.js