Fix for Raspbian buster

Fix for Raspbian buster
This commit is contained in:
itsmesid 2019-08-10 01:52:27 +05:30 committed by GitHub
parent 6806a72ff4
commit 44a6bca8fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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