fix: run init_db with panel venv python
Use venv interpreter so werkzeug is available; sync admin user from .env on init. Set default panel username to dekun. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ python3 -m venv "$ROOT_DIR/panel/venv"
|
||||
"$ROOT_DIR/panel/venv/bin/pip" install -q -r "$ROOT_DIR/panel/requirements.txt"
|
||||
|
||||
log "初始化节点数据库 ..."
|
||||
python3 "$ROOT_DIR/panel/init_db.py"
|
||||
"$ROOT_DIR/panel/venv/bin/python" "$ROOT_DIR/panel/init_db.py"
|
||||
|
||||
log "生成 sing-box 服务端配置 ..."
|
||||
python3 "$ROOT_DIR/scripts/render-server.py"
|
||||
|
||||
Reference in New Issue
Block a user