Fix: Replace mount with symlink for storage directory

- Changed bind mount to symlink in start.sh
- Resolves 'permission denied' error when mounting
- Symlink approach works without elevated privileges
This commit is contained in:
Your Name
2025-10-22 08:52:08 -06:00
parent 1a9311e568
commit 15ec7e7151

View File

@@ -14,8 +14,8 @@ fi
chown -R cloudron:cloudron /app/data chown -R cloudron:cloudron /app/data
chmod -R 755 /app/data/storage chmod -R 755 /app/data/storage
# Bind mount storage to /app/code/storage # Create symlink from /app/code/storage to /app/data/storage
mount --bind /app/data/storage /app/code/storage ln -sf /app/data/storage /app/code/storage
# Create .env file in /app/data # Create .env file in /app/data
echo "==> Configuring application environment" echo "==> Configuring application environment"