On Debian rsyslog is running under root
authorRafael dos Santos Silva <xfalcox@gmail.com>
Mon, 19 Aug 2019 18:17:28 +0000 (15:17 -0300)
committerRafael dos Santos Silva <xfalcox@gmail.com>
Mon, 19 Aug 2019 18:17:28 +0000 (15:17 -0300)
image/base/runit-1.d-00-fix-var-logs

index a762730310262b222c28656961cb9433eb1d7b56..c12065f38c3dd02eae0185bde06bf92c1c6abb9e 100755 (executable)
@@ -3,6 +3,6 @@ mkdir -p /var/log/nginx
 chown -R www-data:www-data /var/log/nginx
 chmod -R 644 /var/log/nginx
 chmod 755 /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*
+touch /var/log/syslog   && chown -f root:adm /var/log/syslog*
+touch /var/log/auth.log && chown -f root:adm /var/log/auth.log*
+touch /var/log/kern.log && chown -f root:adm /var/log/kern.log*