mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 10:15:22 +00:00
Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f45cd5726f | ||
|
|
c8216efc47 | ||
|
|
13776f56bc | ||
|
|
6120a5356f | ||
|
|
7cf198beb8 | ||
|
|
9e69ad4b34 |
2 changed files with 4 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ if [ -d "${LIBRENMS_PATH}/html/plugins/Weathermap" ]; then
|
|||
ln -sf /data/weathermap ${LIBRENMS_PATH}/html/plugins/Weathermap/configs
|
||||
fi
|
||||
chown -h librenms:librenms ${LIBRENMS_PATH}/html/plugins/Weathermap/configs
|
||||
chown -R librenms:librenms /data/weathermap ${LIBRENMS_PATH}/html/plugins/Weathermap/output
|
||||
find /data/weathermap ${LIBRENMS_PATH}/html/plugins/Weathermap/output \( ! -user librenms -o ! -group librenms \) -exec chown librenms:librenms {} +
|
||||
fi
|
||||
|
||||
# cleanup bad symlink: https://github.com/librenms/docker/issues/294#issuecomment-1190389960
|
||||
|
|
@ -219,7 +219,7 @@ done
|
|||
# Fix perms
|
||||
echo "Fixing perms..."
|
||||
chown librenms:librenms /data/config /data/monitoring-plugins /data/plugins /data/rrd /data/weathermap /data/alert-templates
|
||||
chown -R librenms:librenms /data/logs ${LIBRENMS_PATH}/composer* ${LIBRENMS_PATH}/config.d ${LIBRENMS_PATH}/bootstrap ${LIBRENMS_PATH}/logs ${LIBRENMS_PATH}/storage ${LIBRENMS_PATH}/vendor
|
||||
find /data/logs ${LIBRENMS_PATH}/composer* ${LIBRENMS_PATH}/config.d ${LIBRENMS_PATH}/bootstrap ${LIBRENMS_PATH}/logs ${LIBRENMS_PATH}/storage ${LIBRENMS_PATH}/vendor \( ! -user librenms -o ! -group librenms \) -exec chown librenms:librenms {} +
|
||||
chmod ug+rw /data/logs /data/rrd ${LIBRENMS_PATH}/bootstrap/cache ${LIBRENMS_PATH}/storage ${LIBRENMS_PATH}/storage/framework/*
|
||||
|
||||
# Check additional Monitoring plugins
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ cat >/etc/services.d/dispatcher/run <<EOL
|
|||
#!/usr/bin/execlineb -P
|
||||
with-contenv
|
||||
s6-setuidgid ${PUID}:${PGID}
|
||||
/opt/librenms/librenms-service.py ${DISPATCHER_ARGS}
|
||||
cd /opt/librenms
|
||||
./librenms-service.py ${DISPATCHER_ARGS}
|
||||
EOL
|
||||
chmod +x /etc/services.d/dispatcher/run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue