diff --git a/Dockerfile b/Dockerfile index e859d53..e00be3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -132,7 +132,6 @@ RUN apk --update --no-cache add -t build-dependencies \ && git reset --hard $WEATHERMAP_PLUGIN_COMMIT \ ) \ && chown -R nobody:nogroup ${LIBRENMS_PATH} \ - && chown -R librenms:librenms ${LIBRENMS_PATH}/cache \ && apk del build-dependencies \ && rm -rf .git \ html/plugins/Test \ diff --git a/rootfs/etc/cont-init.d/02-fix-perms.sh b/rootfs/etc/cont-init.d/02-fix-perms.sh index 51786fa..3b54519 100644 --- a/rootfs/etc/cont-init.d/02-fix-perms.sh +++ b/rootfs/etc/cont-init.d/02-fix-perms.sh @@ -9,7 +9,8 @@ mkdir -p /data \ chown librenms:librenms \ /data \ "${LIBRENMS_PATH}" \ - "${LIBRENMS_PATH}/.env" + "${LIBRENMS_PATH}/.env" \ + "${LIBRENMS_PATH}/cache" chown -R librenms:librenms \ /home/librenms \ /tpls \