From f73aa67d1ace829553fb9645b68944bae38c37be Mon Sep 17 00:00:00 2001 From: thib Date: Mon, 29 Dec 2003 15:40:52 +0000 Subject: [PATCH] added a test (fix a pb if /etc/pam.conf does not exist) --- script/install-pam-conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/install-pam-conf b/script/install-pam-conf index c1f50c5..91c1c5f 100755 --- a/script/install-pam-conf +++ b/script/install-pam-conf @@ -2,7 +2,7 @@ # Install fcron and fcrontab's pam conf files. # -# $Id: install-pam-conf,v 1.2 2001-11-04 19:00:52 thib Exp $ +# $Id: install-pam-conf,v 1.3 2003-12-29 15:40:52 thib Exp $ if test $# -ne 5; then echo "Too few/many arguments" @@ -17,7 +17,7 @@ INSTALL=$5 for i in fcron fcrontab; do # test for both space and tab in the grep - if test -f $ETC/pam.d/$i || grep "$i[ ]" $ETC/pam.conf 1> /dev/null; then + if test -f $ETC/pam.d/$i || ( test -f $ETC/pam.conf && grep "$i[ ]" $ETC/pam.conf 1> /dev/null ); then echo "Seems that there is already some pam conf about $i ..." else if test -d $ETC/pam.d; then -- 2.40.0