🚑️ hotfix: sh

This commit is contained in:
xtaodada 2023-02-01 12:20:58 +08:00
parent bfd952f15d
commit 86976aa01f
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 7 additions and 6 deletions

View File

@ -10,6 +10,7 @@ services:
volumes:
- ./:/pagermaid/workdir
environment:
- RUN_AS_ROOT=true # 是否以root权限运行pagermaidtrue为是false为否
- PUID=917 # 当 RUN_AS_ROOT=false时才生效即以普通用户权限运行pagermaid可以修改为你定义用户的UID
- PGID=917 # 当 RUN_AS_ROOT=false时才生效即以普通用户权限运行pagermaid可以修改为你定义用户的GID
# - WEB_ENABLE=true
# - WEB_SECRET_KEY=控制台密码
- WEB_HOST=0.0.0.0
# - WEB_PORT=3333

View File

@ -77,7 +77,6 @@ async def execute(command, pass_error=True):
""" Executes command and returns output, with the option of enabling stderr. """
executor = await create_subprocess_shell(
command,
loop=bot.loop,
stdout=PIPE,
stderr=PIPE,
stdin=PIPE

View File

@ -13,6 +13,7 @@ configure () {
echo "生成配置文件中 . . ."
cp config.gen.yml $config_file
sed -i "s/127.0.0.1/0.0.0.0/" $config_file
printf "请输入应用程序 api_id不懂请直接回车"
read -r api_id <&1
sed -i "s/ID_HERE/$api_id/" $config_file