diff --git a/bin/v-fix-website-permissions b/bin/v-fix-website-permissions index 0ab954595..a63954eb2 100644 --- a/bin/v-fix-website-permissions +++ b/bin/v-fix-website-permissions @@ -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