Skip to content
Snippets Groups Projects
Commit 04643c91 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Working to get crontab installed first time.

parent 2142fdf7
No related branches found
No related tags found
No related merge requests found
...@@ -167,10 +167,10 @@ function usersetup ...@@ -167,10 +167,10 @@ function usersetup
function cronit function cronit
{ {
if [ $( crontab -u bfa -l 2>/dev/null | expand | grep -E 'bfa/bin/cron.sh$' | wc -l ) -eq 0 ] if [ $( ( crontab -u bfa -l 2>/dev/null || true ) | grep -E 'bfa/bin/cron.sh$' | wc -l ) -eq 0 ]
then then
info Install crontab to start automatically upon reboot info Install crontab to start automatically upon reboot
( crontab -u bfa -l ; echo '@reboot bfa/bin/cron.sh' ) | crontab -u bfa - (( crontab -u bfa -l 2>/dev/null || true ) ; echo '@reboot bfa/bin/cron.sh' ) | crontab -u bfa -
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment