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

Updated based on review

- Changed startup to depend on nevironment variable
- Fixed uid/gid
- Shortened final sleep before restart (not sure about this one)
This commit is contained in:
Olen 2022-11-18 08:51:55 +01:00 committed by GitHub
parent 693c446b73
commit 3b83e865d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,10 +113,9 @@ chmod +x /etc/services.d/snmpd/run
mkdir -p /etc/services.d/ircbot
cat >/etc/services.d/ircbot/run <<EOL
#!/usr/bin/with-contenv sh
if [ $(lnms config:get irc_alert) == "true" ]; then
s6-setuidgid 1000:992
/opt/librenms/irc.php
if [ ${LIBRENMS_IRC_SERVICE:-0} == "1" ]; then
s6-setuidgid ${PUID}:${PGID} /opt/librenms/irc.php
fi
sleep 60
sleep 10
EOL
chmod +x /etc/services.d/ircbot/run