Commit Graph

33 Commits (b13a75a223c74b1f4dc9d29893bd57f812f69e13)

Author SHA1 Message Date
Adam Warner ba74051502
Grab local FTL hash correctly from FTL's own version output, and grab one digit less for remote hashes (also in debug log)
2 years ago
Adam Warner cdbe4c9b86
Get only the precise tag number when getting local version, do not show branch name when on master branch(es)
2 years ago
Christian König c84be5de61
Reorganize by component rather then source
2 years ago
Christian König d7f7ef9965
Only create VERSION_FILE if it does not exist
2 years ago
Christian König 888e44e53d
Add hash functions to updatecheck
2 years ago
Christian König 18d28533eb
Update local and remote versions at the same time
2 years ago
Christian König 56527e5dd9
Add get_remote_version() to updatechecker
2 years ago
Adam Warner 9debd22179
If, after reading /pihole.docker.tag into DOCKER_TAG, it does not match an expected pattern, unset it - this should prevent arbitary code from being run
2 years ago
Adam Warner b6d1bd7335
Read docker tag from file in root, not the previously set environment variable
2 years ago
Adam Warner 3d53bda121
Update advanced/Scripts/updatecheck.sh
2 years ago
Adam Warner bf256aa5a7
If docker version env var is set, store it in /etc/pihole/versions file for later use
2 years ago
Christian König 49b9dc8888
Remove json_extract function
2 years ago
Adam Warner a4b899c256
Review suggestions (and shellcheck complaints)
2 years ago
Adam Warner 5421aad03e
Store versions as key/value pairs rather than space delimeted values
2 years ago
Dan Schaper 7de6bbca61
Merge branch 'development' into release/v4.3
5 years ago
mpiederiet 3220e2b978
Fix for preventing git error message in cron logs
5 years ago
pvogt09 8a92fb24c4 Incorporates changes requested by @Mcat12
5 years ago
pvogt09 5c575e73c7 Adds world readable attribute to files created by Pi-hole to circumvent #2724
5 years ago
Mark Drobnak 85dceb12a1
Use curl -s instead of -q
6 years ago
Mcat12 d55012f724
Append versions (after the first) instead of overwriting in updatecheck
6 years ago
Adam Warner 0627e68078
Shellcheck is not a fan of sourcing scripts it does not know about. Add Directive to stop shellcheck from checking this.
6 years ago
Adam Warner 7d78f6314a
Source Setupvars file and only check local/remote Web branch/version if the web interface is installed.
6 years ago
Dan Schaper aca359c2e2
Space/Tab updatecheck.sh
6 years ago
DL6ER cca8412921
Use "echo -n" to avoid haveing newlines in the files
6 years ago
DL6ER d15a5ad5c1
Add required documentation in the source code
6 years ago
DL6ER 8ed75dd176
Add extra entry to the end of the saved branches and versions such that PHP's explode() subroutine can correctly disentangle the first three entries and does not get confused by the newline character at the end of the FTL version/branch...
6 years ago
DL6ER be0c457445
Sleep 30 seconds after reboot to be sure that the system is ready
6 years ago
DL6ER 05d015169c
Check for local version and branches every 10 minutes, check for remote versions only once a day
7 years ago
DL6ER 90efa3b610
Simplify git subroutines
7 years ago
DL6ER 0db76aada0
Silence errors when directory to be checked does not exist (system may have been installed without a web interface!)
7 years ago
DL6ER 9be854031f
Don't store FTL branch until the next release of FTL which supports returning the branch in an easy way
7 years ago
DL6ER 709851503f
Use "pihole-FTL branch" to get FTL's branch
7 years ago
DL6ER 6ca47dc3b3
Add bash / cron based update checker for Pi-hole
7 years ago