deploy: rename deploy path from /var/www/posterg to /var/www/xamxam

This commit is contained in:
Pontoporeia
2026-04-28 22:21:09 +02:00
parent cd68e6e9d7
commit 18a02a0018
5 changed files with 24 additions and 17 deletions

View File

@@ -27,25 +27,25 @@ printf "==================================\n\n"
printf "📋 Step 1: Fixing file permissions...\n"
echo "--------------------------------------"
chown -R www-data:posterg /var/www/posterg/
chown -R www-data:posterg /var/www/xamxam/
ok "Ownership: www-data:posterg"
find /var/www/posterg -type d -exec chmod 2775 {} \;
find /var/www/xamxam -type d -exec chmod 2775 {} \;
ok "Directories: 2775 (setgid)"
find /var/www/posterg -type f -exec chmod 664 {} \;
find /var/www/xamxam -type f -exec chmod 664 {} \;
ok "Files: 664"
if [ -d "/var/www/posterg/storage" ]; then
chmod 2775 /var/www/posterg/storage
find /var/www/posterg/storage -name "*.db" -exec chmod 660 {} \;
if [ -d "/var/www/xamxam/storage" ]; then
chmod 2775 /var/www/xamxam/storage
find /var/www/xamxam/storage -name "*.db" -exec chmod 660 {} \;
ok "Storage: 2775, databases: 660"
fi
# Ensure writable cache subdirectories exist for php-fpm (www-data)
mkdir -p /var/www/posterg/storage/cache/rate_limit
chown -R www-data:posterg /var/www/posterg/storage/cache
chmod -R 2775 /var/www/posterg/storage/cache
mkdir -p /var/www/xamxam/storage/cache/rate_limit
chown -R www-data:posterg /var/www/xamxam/storage/cache
chmod -R 2775 /var/www/xamxam/storage/cache
ok "Cache dirs: created and owned by www-data:posterg"
# ── Step 2: Nginx config ──────────────────────────────────────────────────────