🚑️ 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: volumes:
- ./:/pagermaid/workdir - ./:/pagermaid/workdir
environment: environment:
- RUN_AS_ROOT=true # 是否以root权限运行pagermaidtrue为是false为否 # - WEB_ENABLE=true
- PUID=917 # 当 RUN_AS_ROOT=false时才生效即以普通用户权限运行pagermaid可以修改为你定义用户的UID # - WEB_SECRET_KEY=控制台密码
- PGID=917 # 当 RUN_AS_ROOT=false时才生效即以普通用户权限运行pagermaid可以修改为你定义用户的GID - 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. """ """ Executes command and returns output, with the option of enabling stderr. """
executor = await create_subprocess_shell( executor = await create_subprocess_shell(
command, command,
loop=bot.loop,
stdout=PIPE, stdout=PIPE,
stderr=PIPE, stderr=PIPE,
stdin=PIPE stdin=PIPE

View File

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