1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
7 config_get path "$section" path
8 config_get port "$section" port
10 if [ ! -d "$path" ]; then
11 echo "The subversion repository (${path}) does not exist."
12 echo "Create a new repository and/or change the path in /etc/config/subversion"
14 echo "Create a new subversion repository with:"
16 echo " svnadmin create --fs-type fsfs /srv/svn"
18 echo "Changing the path using UCI (default path is: /var/local/svn):"
19 echo " uci set subversion.cfg1.path="/srv/svn""
21 echo " /etc/init.d/subversion restart"
25 svnserve -d --listen-port ${port} -r ${path}
29 config_load "subversion"
30 config_foreach start_service subversion