From eb7f5f601bd3766475c40d2a0c9a3080f4f8bb07 Mon Sep 17 00:00:00 2001 From: akadoya Date: Mon, 19 May 2025 15:23:58 -0700 Subject: [PATCH] minimized permission change --- Dockerfile | 2 +- rootfs/etc/cont-init.d/03-config.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f01737e..fbb6e5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ diff --git a/rootfs/etc/cont-init.d/03-config.sh b/rootfs/etc/cont-init.d/03-config.sh index b868945..8d29435 100644 --- a/rootfs/etc/cont-init.d/03-config.sh +++ b/rootfs/etc/cont-init.d/03-config.sh @@ -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