mirror of
https://gitlab.com/robocopAlpha/pihole_lists.git
synced 2026-05-18 02:42:25 -07:00
update cron commands
This commit is contained in:
parent
4f590e2934
commit
83c90411b7
1 changed files with 3 additions and 3 deletions
|
|
@ -53,9 +53,9 @@ You can add the update.pi script as a cron job to let the updates happen on a se
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo -s
|
sudo -s
|
||||||
curl -L "https://gitlab.com/robocopAlpha/pihole_lists/-/raw/master/update.pi.sh" >| /usr/local/bin/updatepi
|
ln -s /home/dietpi/pihole_lists/update.pi.sh /usr/local/bin/updatepi
|
||||||
chmod +x /usr/local/bin/updatepi
|
chmod +x /usr/local/bin/updatepi
|
||||||
echo '5 18 * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" updatepi' >| /etc/cron.d/updatepi
|
echo '5 4 * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" updatepi' >| /etc/cron.d/updatepi
|
||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@ exit
|
||||||
sudo -s
|
sudo -s
|
||||||
ln -s /home/dietpi/pihole_lists/pull.lists.sh /usr/local/bin/pullLists
|
ln -s /home/dietpi/pihole_lists/pull.lists.sh /usr/local/bin/pullLists
|
||||||
chmod +x /usr/local/bin/pullLists
|
chmod +x /usr/local/bin/pullLists
|
||||||
echo '30 2 * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" pullLists' >| /etc/cron.d/pullLists
|
echo '30 3 * * * dietpi PATH="$PATH:/usr/sbin:/usr/local/bin/" pullLists' >| /etc/cron.d/pullLists
|
||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue