remove call to user list

This commit is contained in:
Adam Warner 2017-03-31 20:13:04 +01:00
parent 5435b93df2
commit af2cff5177
No known key found for this signature in database
GPG key ID: 7C062498C7FA6E49

View file

@ -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