File tree Expand file tree Collapse file tree 3 files changed +23
-20
lines changed
Expand file tree Collapse file tree 3 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 55rm -f /usr/local/apache2/logs/httpd.pid
66
77# Ensure that we have a server name defined
8- if [ " $HTTPD_SERVER_NAME " = " " ]
9- then
8+ if [ " $HTTPD_SERVER_NAME " = " " ]; then
109 HTTPD_SERVER_NAME=${HOSTNAME} ; export HTTPD_SERVER_NAME
1110fi
1211
13- if [ " $HTTPD_SERVER_ADMIN " = " " ]
14- then
12+ if [ " $HTTPD_SERVER_ADMIN " = " " ]; then
1513 HTTPD_SERVER_ADMIN=admin@${HTTPD_SERVER_NAME} ; export HTTPD_SERVER_ADMIN
1614fi
1715
16+ if [ ! -f /svn/config/svn-users ] && [ " $SVN_USER " != " " ] && [ " $SVN_PASSWORD " != " " ]; then
17+ htpasswd -cbB /svn/config/svn-users $SVN_USER $SVN_PASSWORD
18+ fi
19+
20+ if [ " $SVN_REPO_NAME " != " " ] && [ ! -d /svn/repos/$SVN_REPO_NAME ]; then
21+ svnadmin create /svn/repos/$SVN_REPO_NAME
22+ chown -R httpd:httpd /svn/repos/$SVN_REPO_NAME
23+ fi
24+
1825if [ " $HTTPD_SSL " = " " ]
1926then
2027 exec httpd -DFOREGROUND
Original file line number Diff line number Diff line change 11#
2- # Example file, please see Path-Based Authorization in the Subversion documentation.
2+ # Please see Path-Based Authorization in the Subversion documentation.
33#
44# Groups can be defined with users and used with @. Aliases can be defined and referred to with &.
55# Directories or by all means files are referred to as:
1313#
1414# The pre-defined tokens $authenticated and $anonymous can also be used.
1515#
16- [groups]
17- admins = admin
18- example_users = example_user
19-
16+ # Example:
17+ #
18+ # [groups]
19+ # admins = admin
20+ # example_users = example_user
21+ #
22+ # [ExampleRepo:/]
23+ # @example_users = rw
24+ #
25+ # Default rule below grants full read/write access to all authenticated users.
2026[/]
21- @admins = rw
22-
23- [ExampleRepo:/]
24- @example_users = rw
27+ $authenticated = rw
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments