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

minimized permission change

This commit is contained in:
akadoya 2025-05-19 15:23:58 -07:00
parent 785109c30e
commit eb7f5f601b
2 changed files with 2 additions and 2 deletions

View file

@ -136,7 +136,7 @@ RUN apk --update --no-cache add -t build-dependencies \
&& cd ./html/plugins/Weathermap \
&& git reset --hard $WEATHERMAP_PLUGIN_COMMIT \
) \
&& chown -R ${PUID}:${PGID} ${LIBRENMS_PATH} \
&& chown -R nobody:nogroup ${LIBRENMS_PATH} \
&& apk del build-dependencies \
&& rm -rf .git \
html/plugins/Test \

View file

@ -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}/config.d ${LIBRENMS_PATH}/bootstrap ${LIBRENMS_PATH}/logs ${LIBRENMS_PATH}/storage
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
chmod ug+rw /data/logs /data/rrd ${LIBRENMS_PATH}/bootstrap/cache ${LIBRENMS_PATH}/storage ${LIBRENMS_PATH}/storage/framework/*
# Check additional Monitoring plugins