diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-01 20:39:14 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-01 20:39:14 +0300 |
commit | 4152c61153fa5fc5701353cec0ad422f17b1f799 (patch) | |
tree | 6af56fdb619e1cc7daa2013496cedd299a1cc4d0 | |
parent | c148ab1a19c3374543bc849e394d7420c9147a05 (diff) |
make sure permissions are right
-rwxr-xr-x | makeself/install-or-update.sh | 10 | ||||
-rwxr-xr-x | makeself/jobs/99-makeself.install.sh | 1 |
2 files changed, 4 insertions, 7 deletions
diff --git a/makeself/install-or-update.sh b/makeself/install-or-update.sh index 3034abd3f0..225fb0b27a 100755 --- a/makeself/install-or-update.sh +++ b/makeself/install-or-update.sh @@ -147,13 +147,9 @@ dir_should_be_link . var/log/netdata netdata-logs # ----------------------------------------------------------------------------- progress "fix permissions" -for x in etc/netdata var/log/netdata var/lib/netdata var/cache/netdata usr/share/netdata -do - if [ -d "${x}" ] - then - run chown -R ${NETDATA_USER}:${NETDATA_GROUP} ${x} - fi -done +chmod g+rx,o+rx /opt +chmod g+rx,o+rx /opt/netdata +chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata # ----------------------------------------------------------------------------- diff --git a/makeself/jobs/99-makeself.install.sh b/makeself/jobs/99-makeself.install.sh index efed25069d..5c7e3c7d47 100755 --- a/makeself/jobs/99-makeself.install.sh +++ b/makeself/jobs/99-makeself.install.sh @@ -70,6 +70,7 @@ rm "${NETDATA_INSTALL_PATH}/sbin" \ --needroot \ --target "${NETDATA_INSTALL_PATH}" \ --tar-extra "--overwrite" \ + --keep-umask \ --header "${NETDATA_MAKESELF_PATH}/makeself-header.sh" \ --lsm "${NETDATA_MAKESELF_PATH}/makeself.lsm" \ --license "${NETDATA_MAKESELF_PATH}/makeself-license.txt" \ |