mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
deploy: rename deploy path from /var/www/posterg to /var/www/xamxam
This commit is contained in:
@@ -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 ──────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user