feat: puid pgid set
This commit is contained in:
parent
5914d5a05d
commit
a446cf3271
8
start.sh
8
start.sh
@ -3,7 +3,11 @@
|
||||
umask ${UMASK}
|
||||
# 使用 `envsubst` 将模板文件中的 ${NGINX_PORT} 替换为实际的环境变量值
|
||||
envsubst '${NGINX_PORT}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf
|
||||
# 更改 moviepilot userid 和 groupid
|
||||
groupmod -o -g ${PGID} moviepilot
|
||||
usermod -o -u ${PUID} moviepilot
|
||||
chown -R moviepilot:moviepilot ${HOME} /app
|
||||
# 下载浏览器内核
|
||||
playwright install chromium
|
||||
gosu moviepilot:moviepilot playwright install chromium
|
||||
# 启动后端服务
|
||||
python3 app/main.py
|
||||
gosu moviepilot:moviepilot python3 app/main.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user