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?

 

 

 

 

 

 


Create new topic

This is a filtered page: currently showing replies marked as answers. Click here to see full discussion.

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"

 


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.