]> arthur.barton.de Git - netdata.git/commitdiff
ensure correct nologin shell for iser netdata
authorpaulfantom <paulfantom@gmail.com>
Wed, 8 Jun 2016 12:34:11 +0000 (14:34 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 8 Jun 2016 12:34:11 +0000 (14:34 +0200)
netdata-installer.sh

index 1c08d8d9b7ac7f6062cd83f3f8856fedba9bde35..14e5f64a58589e66bd77ec0f8610ba9af24f6c64 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 /sbin/nologin -d / netdata
+               run useradd -r -g netdata -c netdata -s $(which nologin) -d / netdata
        fi
 
        getent group docker > /dev/null