We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d081f5c commit 68481c2Copy full SHA for 68481c2
wordpress_trojan.sh
@@ -47,7 +47,7 @@ function checkTrojan()
47
exit 1
48
fi
49
CONFIG_FILE=/usr/local/etc/trojan/config.json
50
- domain=`grep cert $CONFIG_FILE | awk 'BEGIN { FS = "/" } ; { print $5 }'`
+ domain=`grep -m1 cert $CONFIG_FILE | awk 'BEGIN { FS = "/" } ; { print $5 }'`
51
if [ ! -f /etc/nginx/conf.d/${domain}.conf ]; then
52
echo "未找到域名的nginx配置文件"
53
0 commit comments