diff --git a/bin/vhost-mysql-db-del.sh b/bin/vhost-mysql-db-del.sh index 0f70e70..126b900 100755 --- a/bin/vhost-mysql-db-del.sh +++ b/bin/vhost-mysql-db-del.sh @@ -28,7 +28,7 @@ if [[ -z $domain ]]; then fi # set database name -database=${virtualhost//./dot} +database=${domain//./dot} database=${database//-/dash} # drop database