File: libapache2-mod-svn

package info (click to toggle)
subversion 1.14.5-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 80,416 kB
  • sloc: ansic: 1,039,361; python: 140,229; cpp: 24,862; java: 24,547; ruby: 12,312; lisp: 7,619; sh: 7,414; perl: 7,010; sql: 1,686; makefile: 1,191; xml: 577
file content (24 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -ex

svnadmin create /var/lib/svn
chown -R www-data: /var/lib/svn
cat > /etc/apache2/mods-available/dav_svn.conf <<EOT
<Location /svn>
 DAV svn
 SVNPath /var/lib/svn
</Location>
EOT
service apache2 restart

cd "$AUTOPKGTEST_TMP"
svn checkout http://localhost/svn
cd svn
echo "Hello, world!" > hello
svn add hello
svn commit -mdep8

result=`wget -qO- http://localhost/svn/hello`
service apache2 stop

test "$result" = "Hello, world!"