mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -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
|
||||
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
|
||||
source /etc/profile
|
||||
|
||||
|
@ -29,6 +21,13 @@ source /etc/profile
|
|||
source /usr/local/vesta/func/main.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
|
||||
echo "Database limit is reached. Delete database or upgrade user package."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue