Skip to content

Commit

Permalink
Show docker tag, if it's run inside a container
Browse files Browse the repository at this point in the history
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
  • Loading branch information
rdwebdesign authored and yubiuser committed Dec 23, 2022
1 parent 5487906 commit 41ce1c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions padd.sh
Expand Up @@ -244,6 +244,9 @@ GetSystemInformation() {
fi
elif [ -f /tmp/sysinfo/model ]; then
sys_model=$(tr -d '\0' < /tmp/sysinfo/model)
elif [ -f /pihole.docker.tag ]; then
# Docker image. Remove final line break
sys_model=$(tr -d '\n' < /pihole.docker.tag)
fi

# Cleaning device model from useless OEM information
Expand Down

0 comments on commit 41ce1c5

Please sign in to comment.