aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto>2006-10-10 00:01:40 +0000
committerrhatto <rhatto>2006-10-10 00:01:40 +0000
commitf02a517cf346139ed6dada9c8aef6f68c37ab12c (patch)
tree1a946c09d43f4231467f6e14e20ad7a9035f78e3
parentfe633da5c549064640ddd31f00bbe865e367104a (diff)
downloadfirma-f02a517cf346139ed6dada9c8aef6f68c37ab12c.tar.gz
firma-f02a517cf346139ed6dada9c8aef6f68c37ab12c.tar.bz2
NewList small fix
-rwxr-xr-xfirma36
1 files 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
}