今天封装使用官方mysql docker镜像时,发现svn版本有问题。需要更新到1.9版本。方法如下。

Subversion 1.9 on Debian Jessie

If you would like to use the latest version of Subversion and prefer using the package manager like me, the following steps below will enable you to install Subversion 1.9 from the WanDisco repositories. At the time of writing, the latest version in the WanDisco repo is 1.9.2.

1 #!/bin/bash
2 # download the GPG key of the repository and add it to apt:
3 wget http://opensource.wandisco.com/wandisco-debian.gpg -O /tmp/wandisco-debian.gpg
4 # add downloaded key to apt
5 apt-key add /tmp/wandisco-debian.gpg
6 # create apt sources file for wandisco repo
7 echo "deb http://opensource.wandisco.com/debian/ jessie svn19" > /etc/apt/sources.list.d/wandisco.sources.list
8 # update apt and upgrade packages
9 apt-get update ; apt-get install subversion subversion-tools

It is important to note that the subversion install on Debian Jessie does not include a systemd start script for svnserve. This problem can easily be solved with the service start script provided below. Create an executable file at /etc/init.d/svnserve with the contents below. Note the OPTIONS line in the script below will need to be updated to reflect your specific environment.

1 #!/bin/sh -e
2 ### BEGIN INIT INFO
3 # Provides:          subversion
4 # Required-Start:    $network
5 # Required-Stop:     $network
6 # Default-Start:     2 3 4 5
7 # Default-Stop:      0 1 6
8 # Short-Description: Start daemon at boot time
9 # Description:       Enable service provided by daemon.
10 ### END INIT INFO
11  
12 test -f /usr/bin/svnserve || exit 0
13  
14 OPTIONS="-d -T -r /srv/svn --log-file /var/log/svn.log"
15  
16 case "$1" in
17  start)
18   echo -n "Starting subversion daemon:"
19   echo -n " svnserve"
20   start-stop-daemon --start --quiet --oknodo --chuid www-data:www-data --exec /usr/bin/svnserve -- $OPTIONS
21   echo "."
22   ;;
23  
24  stop)
25   echo -n "Stopping subversion daemon:"
26   echo -n " svnserve"
27   start-stop-daemon --stop --quiet --oknodo --exec /usr/bin/svnserve
28   echo "."
29   ;;
30  
31  reload)
32   ;;
33  
34  force-reload)
35   $0 restart
36   ;;
37  
38  restart)
39   $0 stop
40   $0 start
41   ;;
42  
43  *)
44   echo "Usage: /etc/init.d/svnserve(start|stop|reload|restart)"
45   exit 1
46   ;;
47  
48 esac
49  
50 exit 0

Once your script is in place and set as executable, you can test it with the command below. Assuming your test succeeds, you can then instruct systemd to start the service at boot time.

1 # Test our new svnserve service
2 /etc/init.d/svnserve start
3 # Enable at boot in systemd
4 update-rc.d svnserve enable

参考资料:

https://oitibs.com/subversion-1-9-on-debian-jessie/

【Linux】debian jessie版本安装1.9 svn的更多相关文章

  1. linux使用glibc版本安装mysql8.0.12

    1.前言 使用yum安装虽然很方便,但是如果要是在没有公网的环境下,是没有办法使用yum源的.所以我们可以使用mysql提供的glibc版本的安装包,进行安装. 但是在安装之前,一定要将以前的版本删除 ...

  2. Linux 各种软件的安装-Jenkins和svn结合

    通常情况下,修改代码,打包,上传,发布,这么个顺序发布程序. 有了Jenkins这些重复性的操作可以统统交给程序自动处理.甚至可以指定发布的时机,例如提交一次svn就自动发布,每天定时发布等. 1:安 ...

  3. Linux(Debian)软件安装

    # 配置/etc/apt/sources.list 通过root权限修改/etc/apt/sources.list $ su #输入密码进入root权限 $ chmod 0666 /etc/apt/s ...

  4. linux/Deepin /Debian 9 Stretch安装Wine

    我们可以使用Debian stretch源在Deepin 15.9系统下安装Wine 4.0,同时也可以用在Debian 9 Stretch系统下安装Wine 4.0,方法是一样的,同时下面介绍的方法 ...

  5. Kali Linux (XFce版本)安装后的一些设置

    kali Linux的主版本自带的是Gnome桌面环境,安装后使用效率太低,不知道是不是我机器配置低的原因, 在虚拟机里运行起来太慢.卡.丑啦....所以以前都一直都在用Backbox Linux,并 ...

  6. Linux(Debian) vps安装gnome桌面+VNC

      昨天转载了一篇关于在Linux VPS上安装xface桌面并VNC连接的文章,因为文章是基于CentOS系统来操作的,有热心读者希望有一个Debian下的类似的东西,这就促成了今天的这篇文字.需要 ...

  7. Linux各个发行版本的介绍, 以及VirtualBox+CentOS的安装步骤

    Linux和Unix系统有哪些主要的发行版本 Unix: (非开源传统商业操作系统) IBM AIX, HP HP-UX, Sun Solaris,等 各家硬件厂商的发行版本, 往往是和自家的硬件设备 ...

  8. Linux(Debian) 上安装tomcat并注册服务开机自启动

    1.准备工作 a.下载tomcat linux的包,地址:http://tomcat.apache.org/download-80.cgi,我们下载的版本是8.0,下载方式如图:          b ...

  9. debian 7上安装svn

    1.在终端中直接输入  sudo apt-get install subversion,选择安装即可 2.查看版本命令 svnserve --version(更多命令直接键入svnserve --he ...

随机推荐

  1. AIOps实践三板斧:从可视化、自动化到智能化

    http://ai.51cto.com/art/201806/576881.htm?mobile

  2. HDU 5114 扩展欧几里得

    题目大意:给你两个球的坐标 他们都往(1, 1)这个方向以相同的速度走,问你他们在哪个位置碰撞. 思路:这种题目需要把x方向和y方向分开来算周期,两个不同周期需要用扩展欧几里得来求第一次相遇. #in ...

  3. 自动选择profile

    cobbler system list cobbler profile list 方式一:自动选择profile cobbler system add --name="linux-node1 ...

  4. 文件权限之facl丶文件属性丶特殊权限

    (1)facl:文件的访问控制列表 作用:对象目录或文件可以对不同的用户设定不同的权限 1)getfacl:查看文件或目录的访问控制列表权限 查看 getfacl file/dir acl权限特征:如 ...

  5. Nginx+PHP “No input file specified”错误的解决办法

    配置官网商城php网站时候,界面报错“No input file specified” 原理: 任何对.php文件的请求,都简单地交给php-cgi去处理,但没有验证该php文件是否存在. PHP文件 ...

  6. POJ 2777.Count Color-线段树(区间染色+区间查询颜色数量二进制状态压缩)-若干年之前的一道题目。。。

    Count Color Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 53312   Accepted: 16050 Des ...

  7. equals和hashcode 和 ==方法说明

    java中==.equals().hashCode()都和对象的比较有关,在java中这三者各有什么用处呢,即java中为什么需要设计这三种对象的比较方法呢? 关于== ==是容易理解的.java设计 ...

  8. Flask实战第45天:完成前台登录界面

    我们的注册页面和登录页面有很多相似之处,因此,也可以基于一个模板来实现. 首先创建一个模板html,命名为front_signbase.html, 然后修改注册页面front_signup.html, ...

  9. 【POJ 2409】Let it Bead

    http://poj.org/problem?id=2409 Burnside引理:设\(G\)是\(X\)的置换群,而\(\mathcal{C}\)是\(X\)中一个满足下面条件的着色集合:对于\( ...

  10. Eden的退役记

    好久没更博客了, 这篇随笔不同于之前的学术性随笔.游记,只是来发泄一下自己的情感,回忆一下自己的OI经历…… 五年的OI生涯结束了 初一:懵懂的我刚接触了OI,被其功能吸引.由于运气好过了初赛,然而复 ...