mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-21 18:18:17 +00:00
🚑️ hotfix: sh
This commit is contained in:
parent
bfd952f15d
commit
86976aa01f
@ -5,11 +5,12 @@ services:
|
||||
restart: always
|
||||
container_name: pagermaid
|
||||
hostname: pagermaid
|
||||
#ports: # 是否开启网页控制面板
|
||||
#- "3333:3333"
|
||||
# ports: # 是否开启网页控制面板
|
||||
# - "3333:3333"
|
||||
volumes:
|
||||
- ./:/pagermaid/workdir
|
||||
environment:
|
||||
- RUN_AS_ROOT=true # 是否以root权限运行pagermaid,true为是,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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user