summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorKonstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>2019-11-11 21:16:42 +0200
committerGitHub <noreply@github.com>2019-11-11 21:16:42 +0200
commit1094175c3bd08ecf5c83c91605e9fd1d02052108 (patch)
treedc09f1a67fc5b230fb294ac884a8d49ecb23d88d /system
parentbe75567a7d8cbec27030fa2bb6acc66aaa852154 (diff)
Ownership and permissions of /etc/netdata (#7244)
* make install takes care of ownership and permissions of /etc/netdata Instead of netdata-installer.sh * Fix identation in Makefile.am files * netdata-installer.sh: Clearer variable assignment * netdata-installer.sh: Set /etc/netdata/netdata.conf ownership to root:root and permissions to 0644 * netdata-installer.sh: Set /etc/netdata/.environment permissions to 0644 * install-or-update.sh: Set permissions for /opt/netdata/etc/netdata.conf to 0644 * install-or-update.sh: Use ${NETDATA_PREFIX} more * install-or-update.sh: Improve indentation * install-or-update.sh: Do not create /opt/netdata/etc/netdata directories * debian/rules: /etc/netdata files and directories are now installed by make install * debian/rules: Properly copy files across directories When destination directory exists * netdata.spec.in: /etc/netdata ownership and permissions * Revert "Fix identation in Makefile.am files" This reverts commit 63fdb299b69152fda6984f81b0fef02f364c5efe. * Remove uninstall-local recipes from Makefile.am files * Removed superfluous whitespace and hash
Diffstat (limited to 'system')
-rw-r--r--system/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/Makefile.am b/system/Makefile.am
index 570d4eaeb4..ad68c65541 100644
--- a/system/Makefile.am
+++ b/system/Makefile.am
@@ -20,6 +20,10 @@ dist_config_SCRIPTS = \
edit-config \
$(NULL)
+# Explicitly install directories to avoid permission issues due to umask
+install-exec-local:
+ $(INSTALL) -d $(DESTDIR)$(configdir)
+
nodist_noinst_DATA = \
netdata-openrc \
netdata.logrotate \