]> arthur.barton.de Git - netdata.git/commitdiff
make sure /proc has contents
authorCosta Tsaousis <costa@tsaousis.gr>
Tue, 20 Dec 2016 20:12:55 +0000 (22:12 +0200)
committerCosta Tsaousis <costa@tsaousis.gr>
Tue, 20 Dec 2016 20:12:55 +0000 (22:12 +0200)
netdata-installer.sh

index 431178d9df0a05760b985b0d460e9e0d2d425270..2c5a2479b49b381e2d4958f671c502a3592e00d3 100755 (executable)
@@ -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