1
0
Fork 0
mirror of https://github.com/myvesta/vesta synced 2025-08-07 07:14:44 -07:00

Update v-install-wordpress

This commit is contained in:
myvesta 2021-10-12 11:41:04 +02:00 committed by GitHub
parent 402131c22b
commit def46e8cd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,17 +17,6 @@ fi
# Argument definition
domain=$1
# take --parameters
source /usr/local/vesta/func/handle_parameters.sh
if [ -z "$database" ]; then
database="wp"
fi
if [ -z "$emil" ]; then
email="info@$domain";
fi
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
if [ -z "$user" ]; then
check_result $E_NOTEXIST "domain $domain doesn't exist"
@ -49,6 +38,17 @@ is_format_valid 'domain' 'database' 'email'
is_object_valid 'user' 'USER' "$user"
is_object_unsuspended 'user' 'USER' "$user"
# take --parameters
source /usr/local/vesta/func/handle_parameters.sh
if [ -z "$database" ]; then
database="wp"
fi
if [ -z "$emil" ]; then
email="info@$domain";
fi
if [ ! -d "/home/$user" ]; then
echo "User doesn't exist";
exit 1;