mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-22 18:32:42 +00:00
Merge pull request #5886 from xJayMorex/fix-chown
fix: only chown /data/keys.json if necessary
This commit is contained in:
1 file changed
+3
-1
@@ -49,7 +49,9 @@ done
|
||||
# Ensure the JWT key file is owned by the runtime user, even when the /data
|
||||
# directory ownership already matches PUID:PGID (chownit skips recursion then)
|
||||
if [ -f /data/keys.json ]; then
|
||||
chown "$PUID:$PGID" /data/keys.json
|
||||
if [ "$(stat -c '%u:%g' '/data/keys.json')" != "$PUID:$PGID" ]; then
|
||||
chown "$PUID:$PGID" /data/keys.json
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$(is_true "${SKIP_CERTBOT_OWNERSHIP:-}")" = '1' ]; then
|
||||
|
||||
Reference in new issue
Block a user