mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Do not setcap FTL binary when systemd is used (#5043)
All bets on `AmbientCapabilities`
This commit is contained in:
commit
202aa25c09
1 changed files with 0 additions and 5 deletions
|
@ -1385,11 +1385,6 @@ installConfigs() {
|
||||||
if [[ -d '/run/systemd/system' ]]; then
|
if [[ -d '/run/systemd/system' ]]; then
|
||||||
install -T -m 0644 "${PI_HOLE_LOCAL_REPO}/advanced/Templates/pihole-FTL.systemd" '/etc/systemd/system/pihole-FTL.service'
|
install -T -m 0644 "${PI_HOLE_LOCAL_REPO}/advanced/Templates/pihole-FTL.systemd" '/etc/systemd/system/pihole-FTL.service'
|
||||||
|
|
||||||
# Set net admin permissions so that FTL can serve DNS, DHCP and IMAP (for DHCPv6). If this does not work, run FTL as root user.
|
|
||||||
if ! setcap CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN,CAP_SYS_NICE,CAP_IPC_LOCK,CAP_CHOWN+eip '/usr/bin/pihole-FTL'; then
|
|
||||||
sed -i '/^User=/d' '/etc/systemd/system/pihole-FTL.service'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove init.d service if present
|
# Remove init.d service if present
|
||||||
if [[ -e '/etc/init.d/pihole-FTL' ]]; then
|
if [[ -e '/etc/init.d/pihole-FTL' ]]; then
|
||||||
rm '/etc/init.d/pihole-FTL'
|
rm '/etc/init.d/pihole-FTL'
|
||||||
|
|
Loading…
Reference in a new issue