From 6ed2fd5938bb3fa17b6ad26f1a663790827159eb Mon Sep 17 00:00:00 2001 From: shrank Date: Thu, 12 Mar 2026 15:31:04 +0000 Subject: [PATCH] fix permissions using UID/GID given ny env --- rootfs/etc/cont-init.d/02-fix-perms.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/rootfs/etc/cont-init.d/02-fix-perms.sh b/rootfs/etc/cont-init.d/02-fix-perms.sh index 4bf3865..05b0931 100644 --- a/rootfs/etc/cont-init.d/02-fix-perms.sh +++ b/rootfs/etc/cont-init.d/02-fix-perms.sh @@ -1,11 +1,5 @@ #!/usr/bin/with-contenv sh - echo "Fixing perms..." -mkdir -p /data/db \ - /data/journal \ - /var/run/rrdcached -chown rrdcached. \ - /data/db \ - /data/journal -chown -R rrdcached. \ - /var/run/rrdcached +mkdir -p /data/db /data/journal /var/run/rrdcached +chown ${PUID:-1000}:${PGID:-1000} /data/db /data/journal +chown -R ${PUID:-1000}:${PGID:-1000} /var/run/rrdcached