Permalink
Browse files

properly set ownership of /var/log/netdata to allow all versions of l…

…ogrotate work; #fixes #1456
  • Loading branch information...
1 parent 518883b commit d2621d6e62b033542677a7a24f6b1b85b4fe2c3e @ktsaou ktsaou committed Dec 28, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −0 netdata-installer.sh
  2. +0 −1 system/netdata.logrotate.in
@@ -790,6 +790,9 @@ do
#run find "${x}" -type d -exec chmod 0770 {} \;
done
+run chown "${NETDATA_USER}:root" "${NETDATA_LOG_DIR}"
+run chmod 755 "${NETDATA_LOG_DIR}"
+
# --- plugins ----
if [ ${UID} -eq 0 ]
@@ -1,5 +1,4 @@
@localstatedir_POST@/log/netdata/*.log {
- su netdata netdata
daily
missingok
rotate 14

0 comments on commit d2621d6

Please sign in to comment.