mirror of
https://github.com/myvesta/vesta
synced 2025-07-07 21:41:51 -07:00
When deleting a domain, also delete the database if the domain has a database.
This commit is contained in:
parent
2c819e5bfc
commit
abc641cda2
1 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,9 @@
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# info: change domain and database owner
|
# info: delete database if domain has database
|
||||||
# options: DOMAIN USER
|
# options: DOMAIN
|
||||||
#
|
#
|
||||||
# The function of changing domain and database ownership.
|
# The function for deleting database if domain has database
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Variable&Function #
|
# Variable&Function #
|
||||||
|
@ -60,7 +61,6 @@ if [ ! -z "$DATABASE_NAME" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Vesta #
|
# Vesta #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue