From c1fd079c730e0875933934ab7efbee862b064f00 Mon Sep 17 00:00:00 2001 From: Todd Lyons Date: Tue, 29 Oct 2013 14:01:09 -0700 Subject: [PATCH] Fix formatting --- Installation.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Installation.md b/Installation.md index d0c313d..719399c 100644 --- a/Installation.md +++ b/Installation.md @@ -31,11 +31,13 @@ This will create the repo checkout in the directory *~/code/*. 16. If you can get past each of these steps, then your build farm system meets the minimum requirements. 17. The official process can be kicked off by running `/home/farm/code/run_cron.sh --run-all`. This will run the default build configuration, keep track of the git repository status, and upload the build results to the server. 18. Once that command runs with no complaints, add it to the **farm** user crontab. You can run it at whatever frequency you choose, I suggest 1 hour. If a previous instantiation is still running, the script will detect the lockfile and exit so as not to step on each other. -19. I found that running the *run_cron.sh* had a problem in that cron provides a sanitized path to the script when it gets run. I made a second wrapper script to call the first one so I could put path elements in that were needed: - $ more /home/farm/bin/build_farm.sh - #!/bin/bash - export PATH="/usr/local/bin:/sbin:/usr/sbin:$PATH" - $HOME/code/run_cron.sh --run-all $@ +19. I had a problem running the *run_cron.sh* script in that cron gives a highly sanitized path to the script when it runs it. I made a second wrapper script to call the first one so I could put path elements in that were needed: +
$ more /home/farm/bin/build_farm.sh
+#!/bin/bash
+export PATH="/usr/local/bin:/sbin:/usr/sbin:$PATH"
+$HOME/code/run_cron.sh --run-all $@
+
+Then I make my cronjob call: `6 * * * * $HOME/bin/build_farm.sh` ## Multiple build clients on one machine As mentioned above, you can start at step 9. A second application must be filled out to put the appropriate data in the database because this is treated a separate BuildFarm client: -- 2.30.2