mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-12-02 00:46:27 +08:00
14 lines
371 B
Bash
14 lines
371 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd /app
|
|
umask "${UMASK:-000}"
|
|
|
|
# 在导入原生扩展前启用崩溃诊断,线程栈经 stderr 交给 supervisor 收集。
|
|
if [ "${START_NOGOSU:-false}" = "true" ]; then
|
|
exec "${VENV_PATH:-/opt/venv}/bin/python3" -X faulthandler app/main.py
|
|
fi
|
|
|
|
exec gosu moviepilot:moviepilot "${VENV_PATH:-/opt/venv}/bin/python3" -X faulthandler app/main.py
|