mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 14:20:18 +00:00
Only create VERSION_FILE if it does not exist
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
888e44e53d
commit
d7f7ef9965
1 changed files with 4 additions and 2 deletions
|
@ -49,8 +49,10 @@ rm -f "/etc/pihole/localversions"
|
||||||
|
|
||||||
# Create new versions file if it does not exist
|
# Create new versions file if it does not exist
|
||||||
VERSION_FILE="/etc/pihole/versions"
|
VERSION_FILE="/etc/pihole/versions"
|
||||||
|
if [ ! -f ${VERSION_FILE} ]; then
|
||||||
touch "${VERSION_FILE}"
|
touch "${VERSION_FILE}"
|
||||||
chmod 644 "${VERSION_FILE}"
|
chmod 644 "${VERSION_FILE}"
|
||||||
|
fi
|
||||||
|
|
||||||
# if /pihole.docker.tag file exists, we will use it's value later in this script
|
# if /pihole.docker.tag file exists, we will use it's value later in this script
|
||||||
DOCKER_TAG=$(cat /pihole.docker.tag 2>/dev/null)
|
DOCKER_TAG=$(cat /pihole.docker.tag 2>/dev/null)
|
||||||
|
|
Loading…
Reference in a new issue