2年くらい前はTracの導入が手間だったこともありハマることは覚悟していたのですが、結果的にはコマンドを5つくらい実行するだけで終わりました。あっさり。
流れは公式の手順に沿っただけです。
- TracUpgrade – The Trac Project
easy_install経由でアップグレードしてあとはtrac-adminの操作でOKでした。
以下、個人メモ用ログ
- Tracのアップグレード
$ sudo easy_install --upgrade Trac Searching for Trac Reading http://pypi.python.org/simple/Trac/ Reading http://trac.edgewall.org/ Reading http://trac.edgewall.org/wiki/TracDownload Reading http://trac.edgewall.com/ Reading http://projects.edgewall.com/trac Reading http://projects.edgewall.com/trac/wiki/TracDownload Best match: Trac 0.12 Downloading ftp://ftp.edgewall.com/pub/trac/Trac-0.12.zip Processing Trac-0.12.zip Running Trac-0.12/setup.py -q bdist_egg --dist-dir /tmp/easy_install-K8q9TB/Trac-0.12/egg-dist-tmp-CwXvao catalog 'trac/locale/vi/LC_MESSAGES/messages.po' is marked as fuzzy, skipping catalog 'trac/locale/fa/LC_MESSAGES/messages.po' is marked as fuzzy, skipping catalog 'trac/locale/el/LC_MESSAGES/messages.po' is marked as fuzzy, skipping Removing Trac 0.11.2 from easy-install.pth file Adding Trac 0.12 to easy-install.pth file Installing trac-admin script to /usr/bin Installing tracd script to /usr/bin Installed /usr/lib/python2.5/site-packages/Trac-0.12-py2.5.egg Processing dependencies for Trac Searching for Genshi>=0.6 Reading http://pypi.python.org/simple/Genshi/ Reading http://genshi.edgewall.org/ Reading http://genshi.edgewall.org/wiki/Download Best match: Genshi 0.6 Downloading http://ftp.edgewall.com/pub/genshi/Genshi-0.6-py2.5.egg Processing Genshi-0.6-py2.5.egg Moving Genshi-0.6-py2.5.egg to /usr/lib/python2.5/site-packages Removing Genshi 0.5.1 from easy-install.pth file Adding Genshi 0.6 to easy-install.pth file Installed /usr/lib/python2.5/site-packages/Genshi-0.6-py2.5.egg Finished processing dependencies for Trac
- Tracプロジェクトのアップデート
$ sudo /usr/bin/trac-admin /home/trac/projects upgrade $ sudo /usr/bin/trac-admin /home/trac/projects wiki upgrade $ sudo /usr/bin/trac-admin /home/trac/projects repository resync '*' $ sudo /usr/bin/trac-admin /home/trac/projects deploy /home/trac/projectsこれで終わり。
最後のdeployはちょっと自信なし。
あとはapache再起動すればOKです。
$ sudo apachectl -k restart