mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 05:14:10 -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
|
||||
|
||||
user=$(/usr/local/vesta/bin/v-search-domain-owner $domain)
|
||||
USER=$user
|
||||
|
||||
# Includes
|
||||
source /usr/local/vesta/func/main.sh
|
||||
|
||||
if [ -z "$user" ]; then
|
||||
check_result $E_NOTEXIST "domain $domain doesn't exist"
|
||||
fi
|
||||
|
||||
USER=$user
|
||||
|
||||
# Includes
|
||||
source /usr/local/vesta/func/main.sh
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
#----------------------------------------------------------#
|
||||
|
@ -51,7 +52,7 @@ fi
|
|||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Ensure the directory exists and can be changed into
|
||||
# Going to domain directory
|
||||
cd /home/$USER/web/$domain
|
||||
|
||||
echo "Updating permissions for /home/$USER/web/$domain/public_html/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue