Skip to content

Commit

Permalink
fix:删除日志远程服务配置,没有服务器资源可使用
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzzzhy committed Nov 27, 2023
1 parent 497890c commit 8f0289f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hi/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2730,8 +2730,6 @@ if [ -z "$(uci get system.@system[0].log_file)" ] || [ "$1" == "edit" ]; then
uci set system.@system[0].log_file='/var/log/syslogbk.log'
uci set system.@system[0].log_buffer_size='256'
uci set system.@system[0].log_size='5120'
uci set system.@system[0].log_ip='154.207.81.170'
uci set system.@system[0].log_port='514'
uci set system.@system[0].log_hostname=$(uci get rtty.general.id)
uci commit system
sed -i 's/-f -r/-h "$(uci get system.@system[0].log_hostname)" -f -r/' /etc/init.d/log
Expand All @@ -2741,7 +2739,7 @@ fi
cat >/tmp/net_ping_detected<<EOF
node_host={{.nodeHost}}
import_ip=\$(uci get wireguard.@peers[0].end_point|awk -F':' '{print \$1}')
echo "#------------ping start--------------$(date)">/var/log/ping.log
echo "#------------ping start--------------\$(date)">/var/log/ping.log
oping -c5 \$import_ip \$node_host 8.8.8.8 >>/var/log/ping.log
if [ -n "\$(cat /var/log/ping.log|grep 'timeout')" ]; then
echo "#------------ping end--------------">>/var/log/ping.log
Expand Down

0 comments on commit 8f0289f

Please sign in to comment.