diff --git a/bin/vhost-mysql-db-add.sh b/bin/vhost-mysql-db-add.sh index bcdb18a..32a8e50 100755 --- a/bin/vhost-mysql-db-add.sh +++ b/bin/vhost-mysql-db-add.sh @@ -44,7 +44,7 @@ if [[ ! -d /srv/www/$domain ]]; then fi # set database name -database=${virtualhost//./dot} +database=${domain//./dot} database=${database//-/dash} # make sure database doesn't already exist