diff --git a/target/bin/delmailuser b/target/bin/delmailuser index b3740432..c52668ce 100755 --- a/target/bin/delmailuser +++ b/target/bin/delmailuser @@ -101,7 +101,7 @@ do if [[ -f ${DATABASE} ]] then - if ! sed -i "/^${EMAIL}|/d" "${DATABASE}" + if ! sedfile -i "/^${EMAIL}|/d" "${DATABASE}" then echo "${UNESCAPED_EMAIL} couldn't be deleted in ${DATABASE}." >&2 ERROR=true @@ -126,7 +126,7 @@ do # remove quota directives if [[ -f ${QUOTA_DATABASE} ]] then - if ! sed -i -e "/^${EMAIL}:.*$/d" "${QUOTA_DATABASE}" + if ! sedfile -i -e "/^${EMAIL}:.*$/d" "${QUOTA_DATABASE}" then echo "Quota for ${UNESCAPED_EMAIL} couldn't be deleted in ${QUOTA_DATABASE}." >&2 fi