Skip to content

Commit 68481c2

Browse files
authored
Update wordpress_trojan.sh
1 parent d081f5c commit 68481c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wordpress_trojan.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function checkTrojan()
4747
exit 1
4848
fi
4949
CONFIG_FILE=/usr/local/etc/trojan/config.json
50-
domain=`grep cert $CONFIG_FILE | awk 'BEGIN { FS = "/" } ; { print $5 }'`
50+
domain=`grep -m1 cert $CONFIG_FILE | awk 'BEGIN { FS = "/" } ; { print $5 }'`
5151
if [ ! -f /etc/nginx/conf.d/${domain}.conf ]; then
5252
echo "未找到域名的nginx配置文件"
5353
exit 1

0 commit comments

Comments
 (0)