$SKIP_OWNERSHIP_CHECK in v-fix-website-permissions, v-fix-wordpress-core

This commit is contained in:
Peca 2025-06-24 15:37:21 +02:00
commit f77f8e8b78
2 changed files with 4 additions and 4 deletions

View file

@ -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)"