mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-22 03:25:56 +00:00
12 lines
236 B
Bash
Executable file
12 lines
236 B
Bash
Executable file
#!/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
|