Skip to content

Commit

Permalink
Merge pull request #31 from yubiuser/fix_selection2
Browse files Browse the repository at this point in the history
Fix selection number 2
  • Loading branch information
yubiuser authored May 27, 2021
2 parents 33330d2 + 6486b48 commit 293d076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pihole_adlist_tool
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
PIHOLE_ADLIST_TOOL_VERSION="2.5.1"
PIHOLE_ADLIST_TOOL_VERSION="2.5.2"

# define path to pihole's databases and temporary database
TEMP_DB="/tmp/temp.db"
Expand Down Expand Up @@ -793,7 +793,7 @@ if [ "$FURTHER_ACTION" -eq 2 ]; then

if [ "$PIHOLE_DOCKER" = 0 ];
then
sudo bash -c "$PIHOLE_DOCKER=0; SUDO_SQLITE; sqlite $GRAVITY 'UPDATE adlist SET enabled=1 where id=$adlist_id;'"
sudo bash -c "PIHOLE_DOCKER=0; $SUDO_SQLITE; sqlite $GRAVITY 'UPDATE adlist SET enabled=1 where id=$adlist_id;'"
else
sqlite $GRAVITY "UPDATE adlist SET enabled=1 where id=$adlist_id;'"
fi
Expand Down

0 comments on commit 293d076

Please sign in to comment.