Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


fearandloathing

537 posts

Ultimate Geek
+1 received by user: 206

ID Verified
Lifetime subscriber

#272052 7-Jun-2020 17:48
Send private message

I'm trying to run the following commands from a scheduled task on Synology DSM within a pihole docker container.

 

 

git clone https://github.com/anudeepND/whitelist.git

 

 

cd whitelist/scripts

 

 

./whitelist.sh

 

 

Source: https://github.com/anudeepND/whitelist

 

I have been able to run those three commands directly in bash in the container without issue.

 

 

 

I can successfully run the following command from within a scheduled task. Which will update the targeted pihole container.

 

 

docker exec -d pihole-dns-3 pihole -b advertiser.example.com

 

 

 

 

What do I need to do change in the scheduled task get those three lines to run properly?

 

 

 

 

 

 


Filter this topic showing only the reply marked as answer Create new topic
JamesN
108 posts

Master Geek
+1 received by user: 25


  #2500227 7-Jun-2020 21:39
Send private message

Might be better to put this on the docker forums or stack overflow.

I’m still a bit fresh on docker commands.



freitasm
BDFL - Memuneh
80652 posts

Uber Geek
+1 received by user: 41042

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #2500240 7-Jun-2020 22:27
Send private message

Paging @michaelmurfy who might know...





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


fearandloathing

537 posts

Ultimate Geek
+1 received by user: 206

ID Verified
Lifetime subscriber

  #2500242 7-Jun-2020 22:32
Send private message

Worked it out.

 

 

docker exec -d pihole-dns-3 bash -c "git clone https://github.com/anudeepND/whitelist.git"
sleep 15
docker exec -d pihole-dns-3 bash -c "./whitelist/scripts/whitelist.sh"

 


Filter this topic showing only the reply marked as answer Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.