Skip to content
This repository was archived by the owner on May 11, 2019. It is now read-only.

Commit cc8cb94

Browse files
committed
More info on the options
1 parent 7fe6b94 commit cc8cb94

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

README.markdown

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ This package contains some simple php files for partially managing your subversi
1414
* modify-post-commit.php - Modify the post-commit hooks of all repositories within your svn parent dir.
1515
* htusers.php - Add and remove users to htusers file for repository authorization
1616

17-
These are simple scripts fitting my needs with only a small number of depencies:
17+
These are simple scripts fitting *my* needs with only a small number of dependencies:
18+
1819
* The webserver needs to be able to write to the repositories
1920
* The webserver must be capable of executing svnadmin (Must be on the path)
2021

22+
2123
LICENSE
2224
------
2325
This package is free as-is. Take it and do whatever you like.
@@ -32,14 +34,14 @@ Installation is easy:
3234

3335
Project home:
3436
-------------
35-
The project is located at [Github][svnmin]
37+
The project is located at [Github][svnmin].
38+
3639
Issues are stored in the project itself using the Ditz issue tracker.
3740
Check it out at [ditz.rubyforge.org][ditz]
3841

3942
Authors
4043
-------
4144
* ZeissS zeisss(AT_)moinz.de
4245

43-
4446
[svnmin]: http://www.github.com/zeisss/svnmin "Svnmin at GitHub"
4547
[ditz]: http://ditz.rubyforge.org/ "Ditz at Rubyforge"

config.php.template

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,26 @@
1313

1414
###############################################################
1515
## A pattern to check the repository name before creating one.
16+
## By default this allows all chars (A-z) and numbers.
1617
###############################################################
1718
define ( "REPOSITORY_PATTERN", '/^[A-Za-z][A-Za-z0-9]*$/');
1819

1920
################################################################
2021
## Where is the path based authorization file located?
22+
## Svnmin assumes you have one authz file for all of your
23+
## repositories. Provide a path to it here.
2124
################################################################
2225
define ( "ACCESS_CONFIG", "/opt/svn/svnaccess.conf");
2326

2427
################################################################
25-
##
28+
## Svnmin assumes you have one htusers file for authenticating
29+
## your repository users. If you don't use it, comment it out.
2630
################################################################
2731
define ( "ACCESS_USER", "/opt/svn/svnusers.conf");
2832
define ( 'ACCESS_PASSWORDTYPE', 'crypt'); # Options: crypt, md5
2933

3034
################################################################
3135
# Just a title added to the html output.
3236
define ("TITLE", "Svnmin");
37+
################################################################
3338

34-
?>

htusers.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#
66
#
77
##############
8-
8+
if (not defined('ACCESS_USER'))
9+
die("No ACCESS_USER file provided");
10+
911
require 'config.php';
1012

1113
function modify_htusers_file ( $action, $data, $file = ACCESS_USER ) {

0 commit comments

Comments
 (0)