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

Maquillaje para crontab

parent 993153ec
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
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