uhhjj / start.sh
Speedofmastery's picture
Auto-commit: start.sh updated
c79205c
raw
history blame
929 Bytes
#!/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