Skip to content

Commit 44c38d8

Browse files
authored
Merge pull request #1259 from kawaiipantsu/patch-1
Update updateip.sh
2 parents 72a3b51 + 5eb9368 commit 44c38d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/updateip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# If the external IP cannot be detected, the internal IP will be inherited.
44
source /etc/environment
55
myCHECKIFSENSOR=$(head -n 1 /opt/tpot/etc/tpot.yml | grep "Sensor" | wc -l)
6-
myUUID=$(lsblk -o MOUNTPOINT,UUID | grep "/" | awk '{ print $2 }')
6+
myUUID=$(lsblk -o MOUNTPOINT,UUID | grep -e "^/ " | awk '{ print $2 }')
77
myLOCALIP=$(hostname -I | awk '{ print $1 }')
88
myEXTIP=$(/opt/tpot/bin/myip.sh)
99
if [ "$myEXTIP" = "" ];

0 commit comments

Comments
 (0)