From af2cff5177be159ad224b0dd2cb3403c375b3b02 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 31 Mar 2017 20:13:04 +0100 Subject: [PATCH] remove call to user list --- advanced/Scripts/webpage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 887b8f34..974dbdb5 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -327,8 +327,8 @@ CustomizeAdLists() { sed -i "\\@${args[3]}@s/^#http/http/g" "${list}" elif [[ "${args[2]}" == "disable" ]] ; then sed -i "\\@${args[3]}@s/^http/#http/g" "${list}" - elif [[ "${args[2]}" == "add" && "${args[3]}" == "user" ]] ; then - echo "${args[3]}" >> /etc/pihole/adlists.user + elif [[ "${args[2]}" == "add" ]] ; then + echo "${args[3]}" >> ${list} else echo "Not permitted" return 1