Update v-fix-website-permissions

This commit is contained in:
myvesta 2024-01-08 09:49:04 +01:00 committed by GitHub
commit 003f35810b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,15 +12,17 @@ if [ "$whoami" != "root" ]; then
exit 1
fi
# Importing system environment and includes
# Importing system environment
source /etc/profile
source /usr/local/vesta/func/main.sh
# Argument definition
domain=$1
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
# Includes
source /usr/local/vesta/func/main.sh
if [ -z "$user" ]; then
check_result $E_NOTEXIST "domain $domain doesn't exist"
fi