1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-07-18 00:55:20 +00:00
librenms-docker/rootfs/usr/bin/lnms
2026-03-28 17:11:14 +01:00

7 lines
186 B
Bash
Executable file

#!/usr/bin/env sh
if [ "$(id -u -n)" = "librenms" -a "$(id -g -n)" = "librenms" ]; then
php -f /opt/librenms/lnms "$@"
else
gosu librenms:librenms php -f /opt/librenms/lnms "$@"
fi