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.




222 posts

Master Geek

Lifetime subscriber

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

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
82 posts

Master Geek


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

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

I’m still a bit fresh on docker commands.

BDFL - Memuneh
67454 posts

Uber Geek

Administrator
Trusted
Geekzone
Lifetime subscriber

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

Paging @michaelmurfy who might know...





 

 

These links are referral codes

 

Geekzone broadband switch | Eletricity comparison and switch | Hatch investment (NZ$ 10 bonus if NZ$100 deposited within 30 days) | Sharesies | Mighty Ape | Backblaze | Amazon | My technology disclosure 


 
 
 
 




222 posts

Master Geek

Lifetime subscriber

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

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





Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

National Institute for Health Innovation develops treatment app for gambling
Posted 6-Jul-2020 16:25


Nokia 2.3 to be available in New Zealand
Posted 6-Jul-2020 12:30


Menulog change colours as parent company merges with Dutch food delivery service
Posted 2-Jul-2020 07:53


Techweek2020 goes digital to make it easier for Kiwis to connect and learn
Posted 2-Jul-2020 07:48


Catalyst Cloud launches new Solutions Hub to support their kiwi Partners and Customers
Posted 2-Jul-2020 07:44


Microsoft to help New Zealand job seekers acquire new digital skills needed for the COVID-19 economy
Posted 2-Jul-2020 07:41


Hewlett Packard Enterprise introduces new HPE GreenLake cloud services
Posted 24-Jun-2020 08:07


New cloud data protection services from Hewlett Packard Enterprise
Posted 24-Jun-2020 07:58


Hewlett Packard Enterprise unveils HPE Ezmeral, new software portfolio and brand
Posted 24-Jun-2020 07:10


Apple reveals new developer technologies to foster the next generation of apps
Posted 23-Jun-2020 15:30


Poly introduces solutions for Microsoft Teams Rooms
Posted 23-Jun-2020 15:14


Lenovo launches new ThinkPad P Series mobile workstations
Posted 23-Jun-2020 09:17


Lenovo brings Linux certification to ThinkPad and ThinkStation Workstation portfolio
Posted 23-Jun-2020 08:56


Apple introduces new features for iPhone iOS14 and iPadOS 14
Posted 23-Jun-2020 08:28


Apple announces Mac transition to Apple silicon
Posted 23-Jun-2020 08:18



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.