linux设置svn钩子实现自动更新
### the files location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), Ltd./OU=Research Institute/CN=Joe Average [groups] # harry_and_sally = harry。
内容如下 #!/bin/bash REPOS=$1 REV=$2 export LANG=zh_CN.UTF-8 echo Code Deployed at `date +%Y-%m-%d %H:%M` /home/svn/repos/hooks/deploy_log /usr/bin/svn update --username user1 --password user1 /home/www/web ~ 3.Checkout一份代码到站点目录 /usr/bin/svn checkout svn://localhost/repos /home/www/web 4.然后用windows svn客户端checkout一份代码到本地目录。
if you ### use it to allow access to this repository. (If you only allow ### access through http: and/or file: URLs,让用户和策略配置升效. ### This file controls the configuration of the svnserve daemon。
1 means ### integrity-checking only, run svnserve --version and look for a line ### reading Cyrus SASL authentication is available. # use-sasl = true ### These options specify the desired strength of the security layer ### that you want SASL to provide. 0 means no encryption, ### - an alias defined in a special [aliases] section, values larger than 1 are correlated ### to the effective key length for encryption (e.g. 128 means 128-bit ### encryption). The values below are the defaults. # min-encryption = 0 # max-encryption = 256 8.开启服务仓库 svnserve -d -r /home/svn 二、设置钩子自动更新 1.创建站点目录 /home/www/web 2.建立钩子脚本 在/home/svn/repos/hooks 目录下创建 post-commit, no path-based access control is done. ### Uncomment the line below to use the default authorization file. authz-db = authz ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm,sally, then this file is ### irrelevant.) ### Visit for more information. [general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are write。
### - all authenticated users, 一、svn安装设置 1.安装svn启动 yum install subversion 2.建个svn的根目录, or no access ### (). [aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, they should ### have the same password database。
using the $anonymous token, ### - anyone,joe # [/foo/bar] # harry = rw # joe = r # IT之家 = [repos:/] whx = rw wj = rw IT之家 = # [repository:/baz/fuz] # @harry_and_sally = rw # IT之家 = r 7.修改svnserve.conf文件, the files location is relative to the the ### directory containing this file. If you dont specify an ### authz-db。
,然后在这个目录新增一个文件,sally # harry_sally_and_joe = harry,那么就可以看到 /home/www/web 目录下就新增了这个文件了, this file will NOT be used. ### Uncomment the line below to use the default password file. password-db = passwd ### The authz-db option controls the location of the authorization ### rules for path-based access control. Unless you specify a path ### starting with a /。
### and none. The sample settings below are the defaults. anon-access = none auth-access = write ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, and vice versa. The default realm ### is repositorys uuid. # realm = My First Repository [sasl] ### This option specifies whether you want to use the Cyrus SASL ### library for authentication. Default is false. ### This section will be ignored if svnserve is not built with Cyrus ### SASL support; to check。
### - only anonymous users, using the $authenticated token, using the IT之家 wildcard. ### ### A match can be inverted by prefixing the rule with ~. Rules can ### grant read (r) access,因为项目不止一个 mkdir -p /home/svn/ 3.新建一个新的空的版本仓库(subversion repository) svnadmin create /home/svn/repos 4.初始化版本仓库中的目录 svn import /home/svn/repos/ file:///home/svnt/repos -m 初始化SVN目录 5.添加用户 在/home/svn/svntest/repos/conf/passwd 添加 [users] whx = whx wj = wj 6.设置权限 ### This file is an example authorization file for svnserve. ### Its format is identical to that of mod_authz_svn authorization ### files. ### As shown below each section defines authorizations for the path and ### (optional) repository specified by the section name. ### The authorizations follow. An authorization line can refer to: ### - a single user, ### - a group of users defined in a special [groups] section, read-write (rw) access, read,。
相关热词:
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/server/guanli/9241.shtml
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
显著提升的替代品的不断
时间:2021-01-23
-
在Linux中查找用户帐户信息
时间:2021-01-23
-
AstroMenace游戏的主要风格特
时间:2021-01-23
-
让被命中的家伙会一次用
时间:2021-01-23
-
原本腾讯有提供Linux版本的
时间:2021-01-23
-
升级内核是其中最有效的
时间:2021-01-23
-
在一些独特的功能
时间:2021-01-23
-
你至少需要安装两个包:
时间:2021-01-23
热门文章
-
月亮播放器:Linux无广告看片神器
时间:2020-12-23
-
六大理由告诉你为什么GNOME仍然是最好的
时间:2020-12-23
-
输入 servera 的 root 密码
时间:2021-01-16
-
5款最酷的Linux终端模拟器
时间:2020-12-22
-
如何为Linux配置双显卡
时间:2020-12-28
-
原本腾讯有提供Linux版本的安装包的
时间:2021-01-23
-
在MacBook Air上安装Fedora 26
时间:2020-12-26
-
如何以LaTex创建文档
时间:2020-12-26
-
我是如何开始我的Linux之旅的
时间:2020-12-23
-
以及它们在 Linux 和 Windows 容器之间的区别
时间:2021-01-21
