diff options
author | rhatto <rhatto> | 2006-10-10 00:01:40 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-10-10 00:01:40 +0000 |
commit | f02a517cf346139ed6dada9c8aef6f68c37ab12c (patch) | |
tree | 1a946c09d43f4231467f6e14e20ad7a9035f78e3 | |
parent | fe633da5c549064640ddd31f00bbe865e367104a (diff) | |
download | firma-f02a517cf346139ed6dada9c8aef6f68c37ab12c.tar.gz firma-f02a517cf346139ed6dada9c8aef6f68c37ab12c.tar.bz2 |
NewList small fix
-rwxr-xr-x | firma | 36 |
1 files changed, 19 insertions, 17 deletions
@@ -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 } |