From f02a517cf346139ed6dada9c8aef6f68c37ab12c Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 10 Oct 2006 00:01:40 +0000 Subject: NewList small fix --- firma | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/firma b/firma index 70d0f27..66bd415 100755 --- a/firma +++ b/firma @@ -1005,29 +1005,31 @@ function NewList { EOF - while true; do - read -rep " Send list public key to list admins? (Y/n) " answer - answer="`echo $answer | tr '[:lower:]' '[:upper:]'`" - if [ -z "$answer" ] || [ "$answer" == "Y" ] || [ "$answer" == "YES" ]; then - SendListPubkey $LIST_ADMIN - break - elif [ "$answer" == "N" ] || [ "$answer" == "NO" ]; then - echo " Not sending public key from list to admins. Do it manually." - break - else - echo " Please answer either yes or no." - fi - done + while true; do + read -rep " Send list public key to list admins? (Y/n) " answer + answer="`echo $answer | tr '[:lower:]' '[:upper:]'`" + if [ -z "$answer" ] || [ "$answer" == "Y" ] || [ "$answer" == "YES" ]; then + SendListPubkey $LIST_ADMIN + break + elif [ "$answer" == "N" ] || [ "$answer" == "NO" ]; then + echo " Not sending public key from list to admins. Do it manually." + break + else + echo " Please answer either yes or no." + fi + done - chown -R $FIRMA_USER.$FIRMA_GROUP $LIST_HOMEDIR + chown -R $FIRMA_USER.$FIRMA_GROUP $LIST_HOMEDIR + else + echo "$(basename $0): cannot create $LIST_HOMEDIR: Installation aborted" + return_code=1 + fi else - echo "$(basename $0): cannot create $LIST_HOMEDIR: Installation aborted" + echo " Could not create list homedir $LIST_HOMEDIR." return_code=1 fi - fi - return $return_code } -- cgit v1.2.3