#!/bin/sh
mkdir -p /etc/pihole
mv /opt/Setup/Configs/setupVars.conf /etc/pihole/setupVars.conf
echo "DNSStubListener=no" >> /etc/systemd/resolved.conf
ln -s /etc/systemd/system/pihole-FTL.service /etc/systemd/system/multi-user.target.wants/pihole-FTL.service
curl -sSL https://install.pi-hole.net | curl -L https://install.pi-hole.net | bash /dev/stdin --unattended