add homebrew to path for cron to find rg and sd.

Roadmap: convert to use grep and sed instead for broader POSIX compliance
This commit is contained in:
robocopAlpha 2021-07-18 04:25:42 +03:00
parent 37fa291c71
commit 36ff7385cd

View file

@ -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 3 * * * dietpi PATH="$PATH:/usr/sbin:/usr/local/bin/" pullLists' >| /etc/cron.d/pullLists echo '5 4 * * * root PATH="/home/linuxbrew/.linuxbrew/bin:/usr/sbin:/usr/local/bin/:$PATH" pullLists >| /home/dietpi/pihole_lists/cron_upd.log || cat /home/dietpi/pihole_lists/cron_upd.log' >| /etc/cron.d/pullLists
exit exit
``` ```