From 4b9739a99d9353a4aa3b7e5ff22efc9ecb8ab29b Mon Sep 17 00:00:00 2001 From: cytopia Date: Fri, 1 Jul 2022 15:29:40 +0200 Subject: [PATCH] Fixed correct permission for /opt/nvm during startup --- CHANGELOG.md | 6 ++++++ Dockerfiles/base/data/docker-entrypoint.d/101-uid-gid.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d3af866..55859e6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ ## Unreleased +## Release 0.141 + +### Fixed +- Fixed correct permission for `/opt/nvm` during startup + + ## Release 0.140 ### Changed diff --git a/Dockerfiles/base/data/docker-entrypoint.d/101-uid-gid.sh b/Dockerfiles/base/data/docker-entrypoint.d/101-uid-gid.sh index 3203fec1..d889c763 100755 --- a/Dockerfiles/base/data/docker-entrypoint.d/101-uid-gid.sh +++ b/Dockerfiles/base/data/docker-entrypoint.d/101-uid-gid.sh @@ -72,6 +72,9 @@ set_uid() { if [ -d "/etc/supervisor/custom.d" ]; then run "chown -R ${username} /etc/supervisor/custom.d" "${debug}" fi + if [ -d "/opt/nvm" ]; then + run "chown -R ${username} /opt/nvm" "${debug}" + fi fi fi } @@ -122,6 +125,9 @@ set_gid() { if [ -d "/etc/supervisor/custom.d" ]; then run "chown -R :${groupname} /etc/supervisor/custom.d" "${debug}" fi + if [ -d "/opt/nvm" ]; then + run "chown -R :${groupname} /opt/nvm" "${debug}" + fi fi fi }