From df32c47cf405d1267bbae2dfcc1e47ce66c845a6 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 17 2011 22:12:30 +0000 Subject: Add shells file sanity check. --- diff --git a/tests/p_setup/shells_file_test.sh b/tests/p_setup/shells_file_test.sh new file mode 100755 index 0000000..64eb742 --- /dev/null +++ b/tests/p_setup/shells_file_test.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - shells file sanity check." + +grep -q 'bash' /etc/shells && \ +grep -q 'nologin' /etc/shells + + +t_CheckExitStatus $?