1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Touch file as ${USER} instead of copying template.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2018-07-29 08:42:59 -07:00
parent af2ec61965
commit af13ceac24
No known key found for this signature in database
GPG Key ID: B4FF14C01CC08DC0

View File

@ -2027,7 +2027,10 @@ FTLinstall() {
# Install template if it does not exist # Install template if it does not exist
if [[ ! -f "/etc/pihole/pihole-FTL.conf" ]]; then if [[ ! -f "/etc/pihole/pihole-FTL.conf" ]]; then
install -o "${USER}" -Dm644 "${PI_HOLE_LOCAL_REPO}/advanced/Templates/pihole-FTL.conf" "/etc/pihole/pihole-FTL.conf" if ! sudo -u ${USER} touch "/etc/pihole/pihole-FTL.conf" 2&>1 /dev/null; then
echo -e " ${COL_LIGHT_RED}Error: Unable to initialize configuration file /etc/pihole/pihole-FTL.conf"
return 1
fi
fi fi
local ftlBranch local ftlBranch