mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-24 00:00:14 +00:00
Fix for Raspbian buster
Fix for Raspbian buster
This commit is contained in:
parent
6806a72ff4
commit
44a6bca8fc
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ SetCronTab()
|
||||||
if [[ "$1" == "0" ]]; then
|
if [[ "$1" == "0" ]]; then
|
||||||
crontab crontab.tmp && rm -f crontab.tmp
|
crontab crontab.tmp && rm -f crontab.tmp
|
||||||
else
|
else
|
||||||
newtab="0 */"${1}" * * * su root -c \""${speedtestfile}"\" > /dev/null 2>&1"
|
newtab="0 */"${1}" * * * sudo \""${speedtestfile}"\" > /dev/null 2>&1"
|
||||||
printf '%s\n' "$newtab" >>crontab.tmp
|
printf '%s\n' "$newtab" >>crontab.tmp
|
||||||
crontab crontab.tmp && rm -f crontab.tmp
|
crontab crontab.tmp && rm -f crontab.tmp
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue