X-Git-Url: https://git.llucax.com/mecon/scripts.git/blobdiff_plain/6555662d311a5db90aea058edfbec7c2f2b08754..HEAD:/subversion/sapo/svncreate diff --git a/subversion/sapo/svncreate b/subversion/sapo/svncreate index 0cf6681..8f4bf66 100755 --- a/subversion/sapo/svncreate +++ b/subversion/sapo/svncreate @@ -2,36 +2,19 @@ # $Id$ repos_root=/var/lib/svn -repos_www=/svn -template=/etc/svn/template.conf sistema_base=sistema repos=$1 -desc=$2 -users=$3 if [ -r $repos_root/$repos ]; then echo "ERROR: El repositorio $repos ya existe." exit 1 fi echo "Creando repositorio en $repos_root/$repos..." -#svnadmin create $repos_root/$repos cp -a $repos_root/$sistema_base $repos_root/$repos echo "Corrigiendo permisos de $repos_root/$repos..." chown -R .src $repos_root/$repos chmod -R g=u $repos_root/$repos -echo "Agregando repositorio $repos al Apache2 en $repos_www..." -sed -e "s|{REPOS}|$repos|" -e "s/{DESC}/$desc/" \ - -e "s|{REPOS_ROOT}|$repos_root/$repos|" \ - -e "s|{REPOS_WWW}|$repos_www/$repos|" \ - $template >> /etc/svn/apache.conf - -echo "Agregando grupo $repos con los usuarios $users..." -echo "$repos: $users" >> /etc/svn/group - -echo "Reiniciando Apache2..." -/etc/init.d/apache2 reload - echo "Finalizado."