no-dereference

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2022-05-18 22:19:19 +02:00
parent 08faf21b2e
commit ce8731b746
No known key found for this signature in database
GPG key ID: 4CDA6F249DD2B485

View file

@ -87,14 +87,12 @@ start() {
# Should be removed with Pi-hole v6.0 # Should be removed with Pi-hole v6.0
if [ ! -f /var/log/pihole.log ]; then if [ ! -f /var/log/pihole.log ]; then
ln -s /var/log/pihole/pihole.log /var/log/pihole.log ln -s /var/log/pihole/pihole.log /var/log/pihole.log
chown pihole:pihole /var/log/pihole.log chown -h pihole:pihole /var/log/pihole.log
chmod -f 0644 /var/log/pihole.log
fi fi
if [ ! -f /var/log/pihole-FTL.log ]; then if [ ! -f /var/log/pihole-FTL.log ]; then
ln -s /var/log/pihole/pihole-FTL.log /var/log/pihole-FTL.log ln -s /var/log/pihole/pihole-FTL.log /var/log/pihole-FTL.log
chown pihole:pihole /var/log/pihole-FTL.log chown -h pihole:pihole /var/log/pihole-FTL.log
chmod -f 0644 /var/log/pihole-FTL.log
fi fi
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 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