Skip to content

Commit

Permalink
Fix/hostname in conf (#71)
Browse files Browse the repository at this point in the history
* Fix hostname in manticore.conf.sh
  • Loading branch information
djklim87 authored Jan 5, 2024
1 parent 2aceace commit 8212716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manticore.conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ searchd {
}"
fi

if hostname -i >/dev/null; then
if hostname -i > /dev/null 2>&1; then
hostip=$(hostname -i|rev|cut -d\ -f 1|rev)
elif hostname -I >/dev/null; then
elif hostname -I > /dev/null 2>&1; then
hostip=$(hostname -I|cut -d\ -f 1)
else
hostip="0.0.0.0"
Expand Down

0 comments on commit 8212716

Please sign in to comment.