Fix nginx folder permission.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Mon, 4 Dec 2017 05:19:18 +0000 (13:19 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Mon, 4 Dec 2017 05:19:18 +0000 (13:19 +0800)
image/base/runit-1.d-00-fix-var-logs

index 8e2e9cd8ba50bb93a47f1911e4ae88a04dd35644..ca3567df27c84a83aca794bc137a3f2f5ea5199b 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
 mkdir -p /var/log/nginx
 chown -R www-data:www-data /var/log/nginx
-chmod 655 /var/log/nginx
 chmod -R 644 /var/log/nginx
+chmod 655 /var/log/nginx
 touch /var/log/syslog   && chown -f syslog:adm /var/log/syslog*
 touch /var/log/auth.log && chown -f syslog:adm /var/log/auth.log*
 touch /var/log/kern.log && chown -f syslog:adm /var/log/kern.log*