We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72a3b51 + 5eb9368 commit 44c38d8Copy full SHA for 44c38d8
bin/updateip.sh
@@ -3,7 +3,7 @@
3
# If the external IP cannot be detected, the internal IP will be inherited.
4
source /etc/environment
5
myCHECKIFSENSOR=$(head -n 1 /opt/tpot/etc/tpot.yml | grep "Sensor" | wc -l)
6
-myUUID=$(lsblk -o MOUNTPOINT,UUID | grep "/" | awk '{ print $2 }')
+myUUID=$(lsblk -o MOUNTPOINT,UUID | grep -e "^/ " | awk '{ print $2 }')
7
myLOCALIP=$(hostname -I | awk '{ print $1 }')
8
myEXTIP=$(/opt/tpot/bin/myip.sh)
9
if [ "$myEXTIP" = "" ];
0 commit comments