File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ if [ -d "${LIBRENMS_PATH}/html/plugins/Weathermap" ]; then
105105 ln -sf /data/weathermap ${LIBRENMS_PATH} /html/plugins/Weathermap/configs
106106 fi
107107 chown -h librenms:librenms ${LIBRENMS_PATH} /html/plugins/Weathermap/configs
108- chown -R librenms:librenms /data/weathermap ${LIBRENMS_PATH} /html/plugins/Weathermap/output
108+ find /data/weathermap ${LIBRENMS_PATH} /html/plugins/Weathermap/output \( ! -user librenms -o ! -group librenms \) -exec chown librenms:librenms {} +
109109fi
110110
111111# cleanup bad symlink: https://github.com/librenms/docker/issues/294#issuecomment-1190389960
219219# Fix perms
220220echo " Fixing perms..."
221221chown librenms:librenms /data/config /data/monitoring-plugins /data/plugins /data/rrd /data/weathermap /data/alert-templates
222- 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
222+ 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 {} +
223223chmod ug+rw /data/logs /data/rrd ${LIBRENMS_PATH} /bootstrap/cache ${LIBRENMS_PATH} /storage ${LIBRENMS_PATH} /storage/framework/*
224224
225225# Check additional Monitoring plugins
You can’t perform that action at this time.
0 commit comments