mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
Update v-fix-website-permissions
This commit is contained in:
parent
1a6562eb87
commit
003f35810b
1 changed files with 4 additions and 2 deletions
|
@ -12,15 +12,17 @@ if [ "$whoami" != "root" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Importing system environment and includes
|
# Importing system environment
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
source /usr/local/vesta/func/main.sh
|
|
||||||
|
|
||||||
# Argument definition
|
# Argument definition
|
||||||
domain=$1
|
domain=$1
|
||||||
|
|
||||||
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
|
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
|
||||||
|
|
||||||
|
# Includes
|
||||||
|
source /usr/local/vesta/func/main.sh
|
||||||
|
|
||||||
if [ -z "$user" ]; then
|
if [ -z "$user" ]; then
|
||||||
check_result $E_NOTEXIST "domain $domain doesn't exist"
|
check_result $E_NOTEXIST "domain $domain doesn't exist"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue