Skip to content

Commit

Permalink
properly set ownership of /var/log/netdata to allow all versions of l…
Browse files Browse the repository at this point in the history
…ogrotate work; #fixes #1456
  • Loading branch information
ktsaou committed Dec 28, 2016
1 parent 518883b commit d2621d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions netdata-installer.sh
Expand Up @@ -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 ]
Expand Down
1 change: 0 additions & 1 deletion system/netdata.logrotate.in
@@ -1,5 +1,4 @@
@localstatedir_POST@/log/netdata/*.log {
su netdata netdata
daily
missingok
rotate 14
Expand Down

0 comments on commit d2621d6

Please sign in to comment.