mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-03 02:08:12 -05:00
23 lines
414 B
Bash
23 lines
414 B
Bash
|
#!/command/with-contenv bash
|
||
|
# shellcheck shell=bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
log_info 'Setting ownership ...'
|
||
|
|
||
|
# root
|
||
|
chown root /tmp/nginx
|
||
|
|
||
|
# npmuser
|
||
|
chown -R "$PUID:$PGID" /data \
|
||
|
/run/nginx \
|
||
|
/tmp/nginx \
|
||
|
/var/cache/nginx \
|
||
|
/var/lib/nginx \
|
||
|
/var/log/nginx
|
||
|
|
||
|
# Don't chown entire /etc/nginx folder as this causes crashes on some systems
|
||
|
chown -R "$PUID:$PGID" /etc/nginx/nginx \
|
||
|
/etc/nginx/nginx.conf \
|
||
|
/etc/nginx/conf.d
|