Adam Warner
|
38775cffdf
|
Ensure local hash is always of length 8, for consistency.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
2 years ago |
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)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
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)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
2 years ago |
Christian König
|
c84be5de61
|
Reorganize by component rather then source
Signed-off-by: Christian König <ckoenig@posteo.de>
|
2 years ago |
Christian König
|
d7f7ef9965
|
Only create VERSION_FILE if it does not exist
Signed-off-by: Christian König <ckoenig@posteo.de>
|
2 years ago |
Christian König
|
888e44e53d
|
Add hash functions to updatecheck
Signed-off-by: Christian König <ckoenig@posteo.de>
|
2 years ago |
Christian König
|
18d28533eb
|
Update local and remote versions at the same time
Signed-off-by: Christian König <ckoenig@posteo.de>
|
2 years ago |
Christian König
|
56527e5dd9
|
Add get_remote_version() to updatechecker
Signed-off-by: Christian König <ckoenig@posteo.de>
|
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
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
2 years ago |
Adam Warner
|
b6d1bd7335
|
Read docker tag from file in root, not the previously set environment variable
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
2 years ago |
Adam Warner
|
3d53bda121
|
Update advanced/Scripts/updatecheck.sh
Co-authored-by: yubiuser <ckoenig@posteo.de>
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
|
2 years ago |
Adam Warner
|
bf256aa5a7
|
If docker version env var is set, store it in /etc/pihole/versions file for later use
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
2 years ago |
Christian König
|
49b9dc8888
|
Remove json_extract function
Signed-off-by: Christian König <ckoenig@posteo.de>
|
2 years ago |
Adam Warner
|
a4b899c256
|
Review suggestions (and shellcheck complaints)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
2 years ago |
Adam Warner
|
5421aad03e
|
Store versions as key/value pairs rather than space delimeted values
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
|
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
Fix to prevent "fatal: No names found, cannot describe anything" git message during scheduled update checks
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
5 years ago |
pvogt09
|
8a92fb24c4
|
Incorporates changes requested by @Mcat12
Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
|
6 years ago |
pvogt09
|
5c575e73c7
|
Adds world readable attribute to files created by Pi-hole to circumvent #2724
Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
|
6 years ago |
Mark Drobnak
|
85dceb12a1
|
Use curl -s instead of -q
See #2416
Signed-off-by: Mark Drobnak <mark.drobnak@gmail.com>
|
6 years ago |
Mcat12
|
d55012f724
|
Append versions (after the first) instead of overwriting in updatecheck
Fixes an issue brought up in #2435
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
|
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.
Signed-off-by: Adam Warner <adamw@rner.email>
|
6 years ago |
Adam Warner
|
7d78f6314a
|
Source Setupvars file and only check local/remote Web branch/version if the web interface is installed.
Signed-off-by: Adam Warner <adamw@rner.email>
|
6 years ago |
Dan Schaper
|
aca359c2e2
|
Space/Tab updatecheck.sh
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
|
6 years ago |
DL6ER
|
cca8412921
|
Use "echo -n" to avoid haveing newlines in the files
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
7 years ago |
DL6ER
|
d15a5ad5c1
|
Add required documentation in the source code
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
7 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...
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
7 years ago |
DL6ER
|
be0c457445
|
Sleep 30 seconds after reboot to be sure that the system is ready
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
7 years ago |
DL6ER
|
05d015169c
|
Check for local version and branches every 10 minutes, check for remote versions only once a day
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
7 years ago |
DL6ER
|
90efa3b610
|
Simplify git subroutines
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
7 years ago |
DL6ER
|
0db76aada0
|
Silence errors when directory to be checked does not exist (system may have been installed without a web interface!)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
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
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
7 years ago |
DL6ER
|
709851503f
|
Use "pihole-FTL branch" to get FTL's branch
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
7 years ago |
DL6ER
|
6ca47dc3b3
|
Add bash / cron based update checker for Pi-hole
|
7 years ago |