mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
Update v-install-wordpress
This commit is contained in:
parent
8b75699377
commit
f397454364
1 changed files with 7 additions and 8 deletions
|
@ -14,14 +14,6 @@ if [ "$whoami" != "root" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Argument definition
|
|
||||||
domain=$1
|
|
||||||
|
|
||||||
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
|
|
||||||
if [ -z "$user" ]; then
|
|
||||||
check_result $E_NOTEXIST "domain $domain doesn't exist"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Importing system environment
|
# Importing system environment
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
|
|
||||||
|
@ -29,6 +21,13 @@ source /etc/profile
|
||||||
source /usr/local/vesta/func/main.sh
|
source /usr/local/vesta/func/main.sh
|
||||||
source /usr/local/vesta/func/db.sh
|
source /usr/local/vesta/func/db.sh
|
||||||
|
|
||||||
|
# Argument definition
|
||||||
|
domain=$1
|
||||||
|
|
||||||
|
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
|
||||||
|
if [ -z "$user" ]; then
|
||||||
|
check_result $E_NOTEXIST "domain $domain doesn't exist"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $(is_package_full 'DATABASES') = *reached* ]]; then
|
if [[ $(is_package_full 'DATABASES') = *reached* ]]; then
|
||||||
echo "Database limit is reached. Delete database or upgrade user package."
|
echo "Database limit is reached. Delete database or upgrade user package."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue