Chown each folder on separately

Really not sure why this fixes #2734 however it does actually
help the ownership script succeed specifically on arm7/raspbian
This commit is contained in:
Jamie Curnow 2023-03-28 08:49:58 +10:00
parent 81f51f9e2d
commit 61b290e220
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -9,13 +9,12 @@ log_info 'Setting ownership ...'
chown root /tmp/nginx chown root /tmp/nginx
# npmuser # npmuser
chown -R npmuser:npmuser \ chown -R npmuser:npmuser /data
/data \ chown -R npmuser:npmuser /etc/letsencrypt
/etc/letsencrypt \ chown -R npmuser:npmuser /etc/nginx
/etc/nginx \ chown -R npmuser:npmuser /run/nginx
/run/nginx \ chown -R npmuser:npmuser /tmp/nginx
/tmp/nginx \ chown -R npmuser:npmuser /var/cache/nginx
/var/cache/nginx \ chown -R npmuser:npmuser /var/lib/logrotate
/var/lib/logrotate \ chown -R npmuser:npmuser /var/lib/nginx
/var/lib/nginx \ chown -R npmuser:npmuser /var/log/nginx
/var/log/nginx