User Tools

Site Tools


subversion_repository_creation
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


subversion_repository_creation [2014/11/24 01:14] (current) – created 0.0.0.0
Line 1: Line 1:
 +====== Subversion_Repository_Creation ======
  
 +Don't forget to change "newuser" and "newgroup" in the below shell script to the desired user & group for the created repository.  The desired user is likely to be Apache's user ("nobody", "www-data", etc.), while the group can be whatever might be helpful in your environment.
 +
 +The last line of this script just reminds me to also edit the Apache and ViewVC configuration files.
 +
 +<source lang="bash">#!/bin/bash
 +
 +if [[|-z "$1" ]]; then
 +    echo "You must pass the name of a new repository to this script."
 +    exit
 +fi
 +
 +svnadmin create "$1"
 +
 +chown -R newuser:newgroup "$1"
 +
 +find "$1" -type d -exec chmod 770 {} \;
 +find "$1" -type d -exec chmod g+s {} \;
 +
 +find "$1" -type f -exec chmod 660 {} \;
 +
 +echo "Done!"
 +echo "Now don't forget to edit the files symlinked in /home/subversion/apache-conf/!"</source>
subversion_repository_creation.txt · Last modified: by 0.0.0.0

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki