mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-22 04:39:15 +00:00
🚑️ hotfix: sh
This commit is contained in:
parent
bfd952f15d
commit
86976aa01f
@ -10,6 +10,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./:/pagermaid/workdir
|
- ./:/pagermaid/workdir
|
||||||
environment:
|
environment:
|
||||||
- RUN_AS_ROOT=true # 是否以root权限运行pagermaid,true为是,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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user