Skip to content

Commit

Permalink
Fix cronjob script execution (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
liback committed Mar 20, 2018
1 parent 52a0533 commit e232609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install_nquakesv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ nqecho "done"
[ -z "${addcron}" ] && addcron=${defaultaddcron}

[ "${addcron}" = "y" ] && {
echo "*/10 * * * * \$(cat ~/.nquakesv/install_dir)/start_servers.sh >/dev/null 2>&1" | sudo tee /etc/cron.d/nquakesv >/dev/null
echo "*/10 * * * * $USER cd \$(cat ~/.nquakesv/install_dir) && ./start_servers.sh >/dev/null 2>&1" | sudo tee /etc/cron.d/nquakesv >/dev/null
}
}

Expand Down

0 comments on commit e232609

Please sign in to comment.