Speedofmastery commited on
Commit
cdf112e
Β·
1 Parent(s): 599078b

Auto-commit: start.sh updated

Browse files
Files changed (1) hide show
  1. start.sh +37 -0
start.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # OpenManus Platform - Linux Startup Script
4
+
5
+ echo "🐧 Starting OpenManus Platform on Linux..."
6
+
7
+ # Set proper permissions
8
+ chmod +x /home/user/app/app.py
9
+
10
+ # Create necessary directories
11
+ mkdir -p /home/user/app/logs
12
+ mkdir -p /home/user/app/data
13
+ mkdir -p /home/user/app/cache
14
+
15
+ # Initialize SQLite database
16
+ echo "πŸ“ Initializing database..."
17
+ python3 -c "
18
+ import sqlite3
19
+ import os
20
+ db_path = '/home/user/app/openmanus.db'
21
+ if not os.path.exists(db_path):
22
+ print('Creating database...')
23
+ conn = sqlite3.connect(db_path)
24
+ conn.close()
25
+ print('Database created successfully!')
26
+ "
27
+
28
+ # Check Python version and dependencies
29
+ echo "πŸ” System Information:"
30
+ echo "Python version: $(python3 --version)"
31
+ echo "Working directory: $(pwd)"
32
+ echo "User: $(whoami)"
33
+ echo "Available memory: $(free -h | grep '^Mem:' | awk '{print $2}')"
34
+
35
+ # Start the application
36
+ echo "πŸš€ Launching OpenManus Platform..."
37
+ exec python3 app.py