mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Update v-change-dir-www
This commit is contained in:
parent
2daa635cde
commit
9fdfe2760a
1 changed files with 6 additions and 5 deletions
|
@ -28,17 +28,18 @@ SILENT_MODE=1
|
||||||
domain=$1
|
domain=$1
|
||||||
|
|
||||||
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
|
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
|
USER=$user
|
||||||
|
|
||||||
# Includes
|
# Includes
|
||||||
source /usr/local/vesta/func/main.sh
|
source /usr/local/vesta/func/main.sh
|
||||||
source /usr/local/vesta/func/domain.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 #
|
# Verifications #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue