Add setcap to make install target (we don't do it in the init.d/systemd script anymore, so we have to do it after the binary is copied to its final location)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-04-16 22:53:30 +01:00
parent b133b657ac
commit 410075cd34
+1
View File
@@ -116,3 +116,4 @@ prefix=/usr
# the service script on sudo service pihole-FTL (re)start
install: pihole-FTL
install -m 0755 pihole-FTL $(prefix)/bin
/sbin/setcap CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN+eip $(prefix)/bin/pihole-FTL