Created
March 4, 2010 02:47
-
-
Save tckz/321345 to your computer and use it in GitHub Desktop.
redmineのリポジトリ更新cronジョブ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
myname=`basename $0` | |
pid=$$ | |
( | |
echo "fetch repos." 1>&2 | |
cd /path/to/redmine/rails_root | |
env LANG=ja_JP.UTF-8 ruby script/runner "Repository.fetch_changesets" -e production | |
echo "done." 1>&2 | |
) 2>&1 | logger -st "$myname[$pid]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment