Christian König
8e6bb15283
Remove mocked systemctl completely
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Christian König
90862e6fc6
Run systemd in tests
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Christian König
097e758cb6
Allow pihole restart via systemctl
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Christian König
74b0904af4
Tweak tests to allow systemd as init system
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Dan Schaper
95e799ed6e
Do not require man pages to be present in test script ( #5037 )
...
Skip manpage tests when the manpage directory does not exist.
1 year ago
DL6ER
202aa25c09
Do not setcap FTL binary when systemd is used ( #5043 )
...
All bets on `AmbientCapabilities`
1 year ago
MichaIng
06de172952
Skip setcap on installs with systemd
...
since the systemd unit uses "AmbientCapabilities" to grant capabilities.
Signed-off-by: MichaIng <micha@dietpi.com>
Signed-off-by: MichaIng <micha@dietpi.com>
1 year ago
Adam Warner
ff5ee29566
Add native systemd service ( #4924 )
1 year ago
Adam Warner
d393497641
sync: master to development ( #5041 )
1 year ago
Adam Warner
0034538794
v5.14.2 ( #5040 )
1 year ago
Christian König
ea26171c18
Do not require man pages to be present in test script
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Dan Schaper
82dfcbcd83
Fix pihole updatecheck reboot ( #5035 )
1 year ago
RD WebDesign
233453267e
Using `shift` to allow passing multiple arguments
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
1 year ago
RD WebDesign
f3c27f706f
Pass only the correct argument
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
1 year ago
Dan Schaper
983d79b3e6
Don't install `which` ( #5028 )
1 year ago
Christian König
6d8abc2e30
Don't install `which`
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Adam Warner
38775cffdf
Ensure local hash is always of length 8, for consistency.
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
1 year ago
Adam Warner
b13a75a223
sync: master to development ( #5017 )
1 year ago
Adam Warner
21026d9414
Fix odd behaviour introduced into new version checking script ( #5016 )
1 year 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>
1 year 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>
1 year ago
Adam Warner
ca04c13315
sync: master to development ( #5013 )
1 year ago
Adam Warner
3c86af0e59
Pi-hole core v5.14 ( #5012 )
1 year ago
Adam Warner
ddaa1bf0d4
Correctly identify process status in debug script on docker ( #5011 )
1 year ago
Adam Warner
6b8ba3c15e
Replace deprecated shell commands ( #4907 )
1 year ago
Christian König
7536c312ee
Correctly identify process status in debug script on docker
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Adam Warner
a8b6eb9b70
Touch files before addKey or addOrEditKeyValPair ( #4999 )
1 year ago
Christian König
67385b7ed4
Touch files before addKey or addOrEditKeyValPair
...
Signed-off-by: Christian König <ckoenig@posteo.de>
1 year ago
Adam Warner
64e61aac4a
Simplify versions.sh ( #4959 )
1 year ago
Christian König
2fd5b944ad
Touch setupVars before writing to it
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Dan Schaper
f91606bb17
Fix static IP not set because of in-line comment in dhcpcd.conf ( #4998 )
2 years ago
Stephan Pillhofer
122bc6b927
Fix static IP not set because of in-line comment
...
Signed-off-by: Stephan Pillhofer <43667664+StephanPillhofer@users.noreply.github.com>
2 years ago
Dan Schaper
3491dbfd04
Check `versions` file on the debug log ( #4977 )
2 years ago
Dan Schaper
871067acd8
Fix static IP not set if IP is already present in any way inside dhcpcd.conf ( #4995 )
...
Use grep and regex to find uncommented use of `static ip_address` with IP.
2 years ago
Stephan Pillhofer
06cf7afbc2
Fix static IP not set
...
Signed-off-by: Stephan Pillhofer <43667664+StephanPillhofer@users.noreply.github.com>
2 years ago
MichaIng
81927334f2
Add native systemd service
...
Inspired by: https://github.com/pi-hole/pi-hole/pull/2112
A pre-start and a post-stop script are added to reduce doubled setup and cleanup code.
Since systemd services do not natively support dynamic users, test once whether capabilities are supported during install/update, and remove User=pihole otherwise.
Signed-off-by: MichaIng <micha@dietpi.com>
Co-authored-by: DL6ER <dl6er@dl6er.de>
2 years ago
yubiuser
01bf9ca42a
Prevent CNAME loop ( #4988 )
2 years ago
Christian König
c8c6533440
Add small explanation.
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Dan Schaper
f1b15f7e92
Remove check for latest component version in debug log ( #4973 )
2 years ago
DL6ER
e0c351f0e4
Remove unused possibility to obfuscate pihole.log in debug log ( #4974 )
2 years ago
DL6ER
7957acf42f
Remove unused old code from gravity.sh ( #4985 )
2 years ago
Dan Schaper
c3e8d76d63
Escape dots in local DNS records/CNAMES before removing them ( #4990 )
2 years ago
Christian König
128a3ab1be
Go POSIX
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
df3e9e5f51
Disable shellcheck as it suggests a bashism
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
c322458dcb
Escape dots in local DNS records/CNAMES before removing them
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Christian König
21be1bd58e
Prevent CNAME loop
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2 years ago
Adam Warner
469a267150
Adding CentOS Stream 9 tests ( #4984 )
2 years ago
RD WebDesign
090727b1d3
Remove unnecessary return
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2 years ago
RD WebDesign
85ffbcf05e
Allow replacing conflicting existing packages from testing image
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2 years ago
RD WebDesign
528abc9c97
Adding CentOS Stream 9 tests
...
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2 years ago