Correction des scripts d'exemple
This commit is contained in:
@@ -33,7 +33,7 @@ check_app_mail()
|
||||
{
|
||||
mail=$1
|
||||
while read line; do
|
||||
if ["mail" == "line"]; then
|
||||
if [ "$mail" == "$line" ]; then
|
||||
echo "Adress already exist"
|
||||
exit 2;
|
||||
fi;
|
||||
@@ -101,12 +101,14 @@ case $1 in
|
||||
"del")
|
||||
check_domain "$2"
|
||||
delete_mail_account "$2"
|
||||
;;
|
||||
smtpctl update table passwd
|
||||
;;
|
||||
*)
|
||||
check_domain "$1"
|
||||
check_alias "$1"
|
||||
check_app_mail "$1"
|
||||
add_mailbox "$1"
|
||||
change_password "$1" "$2"
|
||||
;;
|
||||
smtpctl update table passwd
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user