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:
4
start.sh
4
start.sh
@@ -14,8 +14,8 @@ fi
|
||||
chown -R cloudron:cloudron /app/data
|
||||
chmod -R 755 /app/data/storage
|
||||
|
||||
# Bind mount storage to /app/code/storage
|
||||
mount --bind /app/data/storage /app/code/storage
|
||||
# Create symlink from /app/code/storage to /app/data/storage
|
||||
ln -sf /app/data/storage /app/code/storage
|
||||
|
||||
# Create .env file in /app/data
|
||||
echo "==> Configuring application environment"
|
||||
|
||||
Reference in New Issue
Block a user