Skip to content

Instantly share code, notes, and snippets.

@tckz
Created March 4, 2010 02:47
Show Gist options
  • Save tckz/321345 to your computer and use it in GitHub Desktop.
Save tckz/321345 to your computer and use it in GitHub Desktop.
redmineのリポジトリ更新cronジョブ
#!/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