1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 02:14:48 +00:00

Verifying user and group in lnms script (#278)

This commit is contained in:
PJGuyTen 2022-07-14 09:14:39 -04:00 committed by GitHub
parent a290b46d5d
commit cedde585f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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