Skip to content

Commit

Permalink
修复自定义端口问题
Browse files Browse the repository at this point in the history
  • Loading branch information
KunBuFenZi authored Dec 7, 2024
1 parent f41b016 commit 34e1570
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup-monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ EOF

# Get user input
read -p "Enter auth_secret: " auth_secret
read -p "Enter listen port (default :3000): " listen
listen=${listen:-":3000"}
read -p "Enter listen port (default 3000): " listen
listen=${listen:-"3000"}
read -p "Enter hook_token: " hook_token

# Get enable_tg choice and related information
Expand All @@ -84,7 +84,7 @@ done
cat > /etc/ak_monitor/config.json <<EOF
{
"auth_secret": "${auth_secret}",
"listen": "${listen}",
"listen": ":${listen}",
"enable_tg": ${enable_tg},
"tg_token": "${tg_token}",
"hook_uri": "/hook",
Expand Down

0 comments on commit 34e1570

Please sign in to comment.