mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-28 17:07:53 +01:00
fix: Ensure JWT key file ownership matches PUID/PGID at startup
This commit is contained in:
1 parent
29687987b2
commit
b7772016ba
1 file changed
+6
@@ -46,6 +46,12 @@ for loc in "${locations[@]}"; do
|
|||||||
chownit "$loc"
|
chownit "$loc"
|
||||||
done
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$(is_true "${SKIP_CERTBOT_OWNERSHIP:-}")" = '1' ]; then
|
if [ "$(is_true "${SKIP_CERTBOT_OWNERSHIP:-}")" = '1' ]; then
|
||||||
log_info 'Skipping ownership change of certbot directories'
|
log_info 'Skipping ownership change of certbot directories'
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user