remove call to user list
This commit is contained in:
@@ -327,8 +327,8 @@ CustomizeAdLists() {
|
|||||||
sed -i "\\@${args[3]}@s/^#http/http/g" "${list}"
|
sed -i "\\@${args[3]}@s/^#http/http/g" "${list}"
|
||||||
elif [[ "${args[2]}" == "disable" ]] ; then
|
elif [[ "${args[2]}" == "disable" ]] ; then
|
||||||
sed -i "\\@${args[3]}@s/^http/#http/g" "${list}"
|
sed -i "\\@${args[3]}@s/^http/#http/g" "${list}"
|
||||||
elif [[ "${args[2]}" == "add" && "${args[3]}" == "user" ]] ; then
|
elif [[ "${args[2]}" == "add" ]] ; then
|
||||||
echo "${args[3]}" >> /etc/pihole/adlists.user
|
echo "${args[3]}" >> ${list}
|
||||||
else
|
else
|
||||||
echo "Not permitted"
|
echo "Not permitted"
|
||||||
return 1
|
return 1
|
||||||
|
Reference in New Issue
Block a user