diff options
author | Paul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-08-13 14:40:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-13 14:40:38 +0300 |
commit | dc38b1d15df2d07f65c0f3c8f8f944fbcc89a574 (patch) | |
tree | 0170d34507ba074df2b46a98e2bc957b59cdc68d /daemon | |
parent | d6ede34882af958bf0ff1bb5ff0ff3775cca5381 (diff) |
netdata/installer: Fix error running kickstart as a non-privileged user (#6642)
* netdata/packaging: fix kickstart clean up process and others
1) when TMPDIR fails to be created (cd wont work), fail over to /tmp otherwise its going to write on / which is, well, wrong (we had rm based on TMPDIR)
2) make sure we remove the directories too when clean up and always include sudo variable, to handle situations of non-root executions
3) When deleting the dir, be extra sure it's not / or the /tmp itself
* netdata/packaging: sh friendly conditionals
* netdata/packaging: fix md5sum on documentation
* netdata/installer: enter the tmpdir in the failover case too
* netdata/installer: simplify - we dont expect mktemp to fail, if it does then something is wrong so dont make cd a soft error. simplify conditionals also
* netdata/installer: update md5sum
Diffstat (limited to 'daemon')
0 files changed, 0 insertions, 0 deletions