mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
$SKIP_OWNERSHIP_CHECK in v-fix-website-permissions, v-fix-wordpress-core
This commit is contained in:
parent
09465e5fba
commit
f77f8e8b78
2 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ fi
|
|||
cd /home/$USER/web/$domain
|
||||
|
||||
# Ownership check
|
||||
if [ -f "public_html/index.php" ]; then
|
||||
if [ -z "$SKIP_OWNERSHIP_CHECK" ] && [ -f "public_html/index.php" ]; then
|
||||
owner=$(stat -c '%U' "public_html/index.php")
|
||||
if [ "$owner" = "root" ] || [ "$owner" = "www-data" ]; then
|
||||
echo "Skipping permission fix for $domain, because v-lock-wordpress is used (index.php is owned by $owner)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue