14 lines
741 B
Bash
14 lines
741 B
Bash
set -u
|
|||
|
|
echo "=== [A] 平台是否把 baseDomain/实例子域下发前端 ==="
|
||
|
|
grep -rn "subdomainForUser\|baseDomain" --include=*.js /opt/dshs/lib/web 2>/dev/null | head -20
|
||
|
|
echo
|
||
|
|
echo "=== [B] users 表 label 列表 ==="
|
||
|
|
sudo -u postgres psql -p 15432 -d dshs -Atc "select username, role, disabled from users order by 1" 2>&1 | grep -v 'could not change'
|
||
|
|
echo
|
||
|
|
echo "=== [C] 门户页里是否出现 ai1net ==="
|
||
|
|
curl -s --max-time 10 http://127.0.0.1:3080/portal.html | grep -o "ai1net[^\"]*" | head -5
|
||
|
|
echo "--- alotbuy 出现次数 ---"
|
||
|
|
curl -s --max-time 10 http://127.0.0.1:3080/portal.html | grep -o "alotbuy" | wc -l
|
||
|
|
echo
|
||
|
|
echo "=== [D] work.alotbuy.com 是否被本机 nginx 承载 ==="
|
||
|
|
ls -la /www/server/panel/vhost/nginx/ | head -30
|