mirror of
https://github.com/pi-hole/pi-hole.git
synced 2026-08-27 04:05:42 +00:00
Wipe version file before creating a new one
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
parent
e929d799b8
commit
d765ce768f
1 changed files with 5 additions and 1 deletions
|
|
@ -50,8 +50,12 @@ rm -f "/etc/pihole/GitHubVersions"
|
|||
rm -f "/etc/pihole/localbranches"
|
||||
rm -f "/etc/pihole/localversions"
|
||||
|
||||
# Create new versions file if it does not exist
|
||||
VERSION_FILE="/etc/pihole/versions"
|
||||
|
||||
# Remove the version file if it exists
|
||||
rm -f "${VERSION_FILE}"
|
||||
|
||||
# Create new versions file
|
||||
touch "${VERSION_FILE}"
|
||||
chmod 644 "${VERSION_FILE}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue