#!/bin/bash # OpenManus Platform - Linux Startup Script echo "🐧 Starting OpenManus Platform on Linux..." # Set proper permissions chmod +x /home/user/app/app.py # Create necessary directories mkdir -p /home/user/app/logs mkdir -p /home/user/app/data mkdir -p /home/user/app/cache # Initialize SQLite database echo "📁 Initializing database..." python3 -c " import sqlite3 import os db_path = '/home/user/app/openmanus.db' if not os.path.exists(db_path): print('Creating database...') conn = sqlite3.connect(db_path) conn.close() print('Database created successfully!') " # Check Python version and dependencies echo "🔍 System Information:" echo "Python version: $(python3 --version)" echo "Working directory: $(pwd)" echo "User: $(whoami)" echo "Available memory: $(free -h | grep '^Mem:' | awk '{print $2}')" # Start the application echo "🚀 Launching OpenManus Platform..." exec python3 app.py