mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 06:14:19 -07:00
Update v-fix-website-permissions
This commit is contained in:
parent
bdde36d4e3
commit
ecf419cb88
1 changed files with 6 additions and 5 deletions
|
@ -19,15 +19,16 @@ source /etc/profile
|
||||||
domain=$1
|
domain=$1
|
||||||
|
|
||||||
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
|
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
|
||||||
USER=$user
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
|
USER=$user
|
||||||
|
|
||||||
|
# Includes
|
||||||
|
source /usr/local/vesta/func/main.sh
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Verifications #
|
# Verifications #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
@ -51,7 +52,7 @@ fi
|
||||||
# Action #
|
# Action #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Ensure the directory exists and can be changed into
|
# Going to domain directory
|
||||||
cd /home/$USER/web/$domain
|
cd /home/$USER/web/$domain
|
||||||
|
|
||||||
echo "Updating permissions for /home/$USER/web/$domain/public_html/"
|
echo "Updating permissions for /home/$USER/web/$domain/public_html/"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue