]> arthur.barton.de Git - netdata.git/commitdiff
add failsafe to choosing login shell
authorpaulfantom <paulfantom@gmail.com>
Wed, 8 Jun 2016 12:52:43 +0000 (14:52 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 8 Jun 2016 12:52:43 +0000 (14:52 +0200)
netdata-installer.sh

index 14e5f64a58589e66bd77ec0f8610ba9af24f6c64..5cec8f3aad2d7eb3465f429a1c927a6db62caec9 100755 (executable)
@@ -376,7 +376,7 @@ if [ ${UID} -eq 0 ]
        if [ $? -ne 0 ]
                then
                echo >&2 "Adding netdata user account ..."
-               run useradd -r -g netdata -c netdata -s $(which nologin) -d / netdata
+               run useradd -r -g netdata -c netdata -s $(which nologin || echo '/bin/false') -d / netdata
        fi
 
        getent group docker > /dev/null