File size: 929 Bytes
cdf112e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c79205c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/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