From bb884f02ff1977b3e044b5482ba652dbca29a9d6 Mon Sep 17 00:00:00 2001 From: James Mills Date: Fri, 6 Mar 2020 10:27:26 +1000 Subject: Fix missing folders in `/var/` (#8314) This commit creates the following folders during the installation of Debian packages: - /var/log/netdata - /var/cache/netdata - /var/run/netdata During the purge of the package, these folders are removed if empty. Note that the permissions of `/var/log/netdata` allow the members of the `adm` group to read the content. Fixes #8173 --- contrib/debian/rules | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/debian/rules') diff --git a/contrib/debian/rules b/contrib/debian/rules index 7e9d45cc29..5993712580 100755 --- a/contrib/debian/rules +++ b/contrib/debian/rules @@ -46,6 +46,9 @@ override_dh_install: debian/netdata.postinst cp -rp $(TEMPTOP)/usr $(TOP) cp -rp $(TEMPTOP)/var $(TOP) cp -rp $(TEMPTOP)/etc $(TOP) + mkdir -p "$(TOP)/var/log/netdata" + mkdir -p "$(TOP)/var/cache/netdata" + mkdir -p "$(TOP)/var/run/netdata" # Move files that local user shouldn't be editing to /usr/share/netdata # -- cgit v1.2.3