Skip to content

Commit a81d269

Browse files
committed
Merge pull request hestiacp#67 from Magentron/fix-add-database
Unable to add database for user (Error: localhost not exist)
2 parents c667274 + c421cb7 commit a81d269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-add-database

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ is_object_valid 'user' 'USER' "$user"
4848
is_object_unsuspended 'user' 'USER' "$user"
4949
is_object_new 'db' 'DB' "$database"
5050
get_next_dbhost
51-
is_object_valid "../../../conf/$type" 'HOST' "$host"
52-
is_object_unsuspended "../../../conf/$type" 'HOST' "$host"
51+
is_object_valid "../../../conf/$type" 'DBHOST' "$host"
52+
is_object_unsuspended "../../../conf/$type" 'DBHOST' "$host"
5353
#is_charset_valid
5454
is_package_full 'DATABASES'
5555

0 commit comments

Comments
 (0)