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:
parent
a290b46d5d
commit
cedde585f6
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue