mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +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:
parent
af2ec61965
commit
af13ceac24
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user