Giter Club home page Giter Club logo

Comments (3)

yubiuser avatar yubiuser commented on June 6, 2024

Something is wrong here. Which version of the script are you running? Are you running Pi-hole bare metal or on docker?

from pihole_adlist_tool.

DJF3 avatar DJF3 commented on June 6, 2024

Script version: 2.5.1 - downloaded today
Pi-Hole running on a raspberry with Rasbian 10.6 Buster
Pi-hole v5.3.1
Web Interface v5.5
FTL v5.8.1

Looking at the code there's no need to create an alias for 'sqlite'
What is executed when the errors appear:

echo "  [i]  Enabling adlists with covered unique domains...."
sudo bash -c "PIHOLE_DOCKER=0; $SUDO_SQLITE; sqlite $GRAVITY 'UPDATE adlist SET enabled=0;'"
    adlist_conf_unique_enabled=(`sqlite $TEMP_DB "select id from adlist where unique_domains_covered IS NOT NULL;"`)
    for adlist_id in "${adlist_conf_unique_enabled[@]}"; do
        sudo bash -c "$PIHOLE_DOCKER=0; SUDO_SQLITE; sqlite $GRAVITY 'UPDATE adlist SET enabled=1 where id=$adlist_id;'"
    done
    pihole restartdns reload-lists
_PLUS_ actions from code below this section

from pihole_adlist_tool.

yubiuser avatar yubiuser commented on June 6, 2024

Thanks for the report. This was a typo in the end ($ was at the wrong spot). Should be fixed now.

from pihole_adlist_tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.