Changeset 2037ec4 for general/prog/svnserver.xml
- Timestamp:
- 01/27/2016 11:21:15 PM (8 years ago)
- Branches:
- systemd-13485
- Children:
- 1e76622
- Parents:
- a7e1ac8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/svnserver.xml
ra7e1ac8 r2037ec4 81 81 <screen role="root"><userinput>groupadd -g 57 svntest && 82 82 usermod -G svntest -a svn</userinput></screen> 83 84 <para>Additionally you should set <command>umask 002</command> while 85 working with a repository so that all new files will be writable by 86 owner and group. This is made mandatory by creating a wrapper script for 87 <command>svn</command> and <command>svnserve</command>:</para> 88 89 <screen role="root"><userinput>mv /usr/bin/svn /usr/bin/svn.orig && 90 mv /usr/bin/svnserve /usr/bin/svnserve.orig && 91 cat >> /usr/bin/svn << "EOF" 92 <literal>#!/bin/sh 93 umask 002 94 /usr/bin/svn.orig "$@"</literal> 95 EOF 96 cat >> /usr/bin/svnserve << "EOF" 97 <literal>#!/bin/sh 98 umask 002 99 /usr/bin/svnserve.orig "$@"</literal> 100 EOF 101 chmod 0755 /usr/bin/svn{,serve}</userinput></screen> 102 103 <note> 104 <para>If you use <application>Apache</application> for working with 105 the repository over HTTP, even for anonymous access, you should wrap 106 <command>/usr/sbin/httpd</command> in a similar script.</para> 107 </note> 83 108 84 109 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.