Fixed correct permission for /opt/nvm during startup

This commit is contained in:
cytopia
2022-07-01 15:29:40 +02:00
parent 9cbb2d3ddb
commit 4b9739a99d
2 changed files with 12 additions and 0 deletions

View File

@@ -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
}