2023-03-20 02:56:52 -04:00
|
|
|
#!/command/with-contenv bash
|
|
|
|
# shellcheck shell=bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
log_info 'Setting ownership ...'
|
|
|
|
|
|
|
|
# root
|
|
|
|
chown root /tmp/nginx
|
|
|
|
|
|
|
|
# npmuser
|
2023-03-27 18:49:58 -04:00
|
|
|
chown -R npmuser:npmuser /data
|
|
|
|
chown -R npmuser:npmuser /etc/letsencrypt
|
|
|
|
chown -R npmuser:npmuser /run/nginx
|
|
|
|
chown -R npmuser:npmuser /tmp/nginx
|
|
|
|
chown -R npmuser:npmuser /var/cache/nginx
|
|
|
|
chown -R npmuser:npmuser /var/lib/logrotate
|
|
|
|
chown -R npmuser:npmuser /var/lib/nginx
|
|
|
|
chown -R npmuser:npmuser /var/log/nginx
|
2023-03-27 20:39:26 -04:00
|
|
|
|
|
|
|
# Don't chown entire /etc/nginx folder as this causes crashes on some systems
|
2023-03-29 00:03:58 -04:00
|
|
|
chown -R npmuser:npmuser /etc/nginx/nginx
|
2023-03-27 20:39:26 -04:00
|
|
|
chown -R npmuser:npmuser /etc/nginx/nginx.conf
|
|
|
|
chown -R npmuser:npmuser /etc/nginx/conf.d
|