Skip to content

Commit

Permalink
fix:b1300缺少log_hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzzzhy committed Oct 27, 2023
1 parent d5700ae commit 11a103b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hi/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2734,6 +2734,7 @@ if [ -z "$(uci get system.@system[0].log_file)" ] || [ "$1" == "edit" ]; then
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
/etc/init.d/log restart
exit 0
fi
Expand Down

0 comments on commit 11a103b

Please sign in to comment.