| # ηζ config.json | |
| cat > /opt/openlist/data/config.json <<EOF | |
| { | |
| "scheme": { | |
| "address": "0.0.0.0", | |
| "http_port": 7860 | |
| }, | |
| "database": { | |
| "type": "${DB_TYPE:-sqlite3}", | |
| "host": "${DB_HOST:-}", | |
| "port": ${DB_PORT:-0}, | |
| "user": "${DB_USER:-}", | |
| "password": "${DB_PASS:-}", | |
| "name": "${DB_NAME:-}", | |
| "ssl_mode": "${DB_SSL:-}", | |
| "db_file": "data/data.db", | |
| "table_prefix": "x_" | |
| } | |
| } | |
| EOF | |
| # θ΅δΊζι | |
| chmod -R 777 /opt/openlist/data | |
| # ε―ε¨ζε‘ | |
| exec ./openlist server |