Update v-change-dir-www

This commit is contained in:
myvesta 2024-12-03 15:50:07 +01:00 committed by GitHub
parent 2daa635cde
commit 9fdfe2760a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,17 +28,18 @@ SILENT_MODE=1
domain=$1
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
if [ -z "$user" ]; then
echo "Domain $domain doesn't exist"
return 1
fi
USER=$user
# Includes
source /usr/local/vesta/func/main.sh
source /usr/local/vesta/func/domain.sh
if [ -z "$user" ]; then
check_result $E_NOTEXIST "Domain $domain doesn't exist"
return 1
fi
#----------------------------------------------------------#
# Verifications #
#----------------------------------------------------------#