You've already forked Atomcms-edit
Fix permissions script to chown entire project directory and use chmod -R
This commit is contained in:
@@ -9,11 +9,10 @@ echo "Fixing permissions..."
|
||||
|
||||
# Fix ownership (only if running as root/sudo, skip otherwise)
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
chown -R "$WEB_USER":"$WEB_USER" storage bootstrap/cache 2>/dev/null || true
|
||||
chown -R "$WEB_USER":"$WEB_USER" "$PROJECT_DIR" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# Fix directory permissions
|
||||
find storage bootstrap/cache -type d -exec chmod 775 {} + 2>/dev/null || true
|
||||
find storage bootstrap/cache -type f -exec chmod 664 {} + 2>/dev/null || true
|
||||
# Fix directory permissions for writable paths
|
||||
chmod -R 775 storage bootstrap/cache 2>/dev/null || true
|
||||
|
||||
echo "Permissions fixed."
|
||||
|
||||
Reference in New Issue
Block a user