diff --git a/bin/vmail.sh b/bin/vmail.sh index 1c112ab..9dd8cc1 100755 --- a/bin/vmail.sh +++ b/bin/vmail.sh @@ -12,7 +12,7 @@ readonly VMAIL_DIR=/var/vmail readonly MYSQL_CONNECTION_INFO_FILE=$VMAIL_DIR/.my.cnf # switch to required user -if [[ $(basename $0) == "vmail-domains-*" ]] || [[ $(basename $0) == "vmail-dovecot-"* ]] || [[ $(basename $0) == "vmail-webmail-"* ]]; then +if [[ $(basename $0) == "vmail-domains-"* ]] || [[ $(basename $0) == "vmail-dovecot-"* ]] || [[ $(basename $0) == "vmail-webmail-"* ]]; then if [[ "$USER" != "root" ]]; then exec sudo -u root $0 "$@" fi