diff --git a/bin/installbfa.sh b/bin/installbfa.sh index 9d043a167fc33b72f090db292d42877840aff5b9..3cabc5bde3777dc10a5084b14065128bac921ff1 100755 --- a/bin/installbfa.sh +++ b/bin/installbfa.sh @@ -199,10 +199,10 @@ function userconfig function cronit { - if [ $( ( crontab -u bfa -l 2>/dev/null || true ) | grep -E "${BFAHOME#~/}/bin/cron.sh" | wc -l ) -eq 0 ] + if [ $( ( crontab -u bfa -l 2>/dev/null || true ) | grep -E "${BFAHOME#~bfa}bin/cron.sh" | wc -l ) -eq 0 ] then info "Install crontab to start automatically upon reboot" - (( crontab -u bfa -l 2>/dev/null || true ) ; echo "@reboot ${BFAHOME#~/}/bin/cron.sh" ) | crontab -u bfa - + (( crontab -u bfa -l 2>/dev/null || true ) ; echo "@reboot ${BFAHOME#~bfa}bin/cron.sh" ) | crontab -u bfa - fi }