summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2016-12-20 22:12:55 +0200
committerCosta Tsaousis <costa@tsaousis.gr>2016-12-20 22:12:55 +0200
commit0996e9d61b880031ba576d4eda97ff440821e3f6 (patch)
tree9375aa2b24e2a06c6b3537dda9db67d8acf9efb8 /netdata-installer.sh
parent00e59130d0ced9b39f6d9df96a4cb6851568c117 (diff)
make sure /proc has contents
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index 431178d9df..2c5a2479b4 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -836,7 +836,7 @@ fi
# stop a running netdata
isnetdata() {
- if [ -d /proc ]
+ if [ -d /proc/self ]
then
[ -z "$1" -o ! -f "/proc/$1/stat" ] && return 1
[ "$(cat "/proc/$1/stat" | cut -d '(' -f 2 | cut -d ')' -f 1)" = "netdata" ] && return 0