From af13ceac24807aa24601a758a416c509802dd0dc Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sun, 29 Jul 2018 08:42:59 -0700 Subject: [PATCH] Touch file as ${USER} instead of copying template. Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 2f1248e9..6ccbbb5c 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -2027,7 +2027,10 @@ FTLinstall() { # Install template if it does not exist 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 local ftlBranch