""""""""""

This commit is contained in:
Michel Roux 2016-10-07 19:47:43 +02:00
parent c760fdbbee
commit d60c50bb89
3 changed files with 3 additions and 3 deletions

View File

@ -7,4 +7,4 @@ read emailto
DIR=/etc/exim4/forward DIR=/etc/exim4/forward
sed -i "s/$emailto,//g" "$DIR/$emailfrom" sed -i "s/$emailto,//g" "$DIR/$emailfrom"
[[ ! -s $DIR/$emailfrom ]] && rm -f $DIR/$emailfrom [[ ! -s "$DIR/$emailfrom" ]] && rm -f "$DIR/$emailfrom"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
DIR=/etc/exim4/forward DIR=/etc/exim4/forward
for file in $DIR/* for file in "$DIR/*"
do do
echo "$file: $(cat $DIR/$file)" echo "$file: $(cat $DIR/$file)"
done done

View File

@ -7,6 +7,6 @@ read domain
DIR=/etc/exim4/domains DIR=/etc/exim4/domains
sed -i "/$username/d" "$DIR/$domain" sed -i "/$username/d" "$DIR/$domain"
[[ ! -s $DIR/$domain ]] && rm -f $DIR/$domain [[ ! -s "$DIR/$domain" ]] && rm -f "$DIR/$domain"
userdb "$username@$domain" del userdb "$username@$domain" del
makeuserdb makeuserdb