Игорь Олемской — практические заметки по системному администрированию Linux CentOS

Архив тега ‘subversion’

SSL and subversion client (перепечатка)

Комментариев нет

Unlike web browsers, the CA root cert is not installed by default for svn clients. You would need to tell the client where to find it in order to trust the ssl cert.

Reference: svnbook

For GoDaddy signed certs, download their root certs available at:

http://certificates.godaddy.com/repository

You would need both the pem encoded gd-class2-root.crt and gd_intermediate.crt .

Then in subversion client global settings, tell it the path to the certs:

ssl-authority-files = /path/to/gd-class2-root.crt;/path/to/gd_intermediate.crt

This should then trust the ssl cert.

read more

SVN Post-Commit Automatic Email (перепечатка)

Комментариев нет

A popular method of communicating to fellow team members that you committed data to a subversion repository is to send an automatic email out to all users of that repository. I developed a simple two-script method that is extensible and easy to implement.

First, somewhere relevant to your repositories make a “scripts” folder. This is generally where I store all my svn-pre/post scripts. I put mine in /srv/svn/scripts (my other repositories are in /srv/svn). In this new folder create a new file called svn_email_commit.sh with the following contents.

Then navigate to your repository root and go into the hooks folder. In there, create a file called post-commit with the following contents…

And that's it! :) Don't forget to chmod +x both of the files above though. Now every time someone commits if they are in the SENDTO field of the post-commit script, they'll get emailed!

The reason I do this in two scripts instead of one is so for each of my repositories I can specify different emails. This helps in a server environment with many repositories with different projects and varying team members, clients or contractors working on the project.

NOTE: You need to put this post-commit file into the hooks folder of each repository that you want emails from.

If you have any problems, please don't hesitate to leave some comments and I'll make edits where necessary. This above works perfectly (with the right software installed) on Ubuntu, Gentoo, and CentOS.

Cheers!

Just about everything updated (including the site) (перепечатка)

Комментариев нет

Alright, just about every package in the repo was just updated. Some significantly, others not so much, but the ones people are likely to care about are there. MySQL is now up to 5.0.84, PHP is up to 5.2.11, and httpd is up to 2.2.13.