Skip to content

Commit

Permalink
Add "Docker tag" and use ${DOCKER_VERSION}
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed Dec 17, 2022
1 parent 6874b87 commit 87464ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions padd.sh
Expand Up @@ -244,9 +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)
elif [ -n "${DOCKER_VERSION}" ]; then
# Docker image. DOCKER_VERSION is read from /etc/pihole/versions
sys_model="Docker tag ${DOCKER_VERSION}"
fi

# Cleaning device model from useless OEM information
Expand Down

0 comments on commit 87464ce

Please sign in to comment.