autoSvn
#!/bin/bash dir="/svndata"name="puppet"user="test"passwd="test"yum -y install subversion expect mkdir -p $dir cd $dir/ svnadmin create $name echo " [groups] admin = $user [$name:/] @admin = rw">>$dir/$name/conf/authz echo "$user = $passwd">>$dir/$name/conf/passwd #svn import $dir/$name/ file://$dir/$name -m "Initial repository" sed -i 's/# password-db = passwd/password-db = '$dir'/'$name'/conf/passwd/g' $dir/$name/conf/svnserve.conf sed -i "s/# anon-access = read/anon-access = none/" $dir/$name/conf/svnserve.conf sed -i 's/# authzauthz-db = authz/authz-db = '$dir'/'$name'/conf/authz/g' $dir/$name/conf/svnserve.conf sed -i 's/$OPTIONS/& -r '$dir'//' /etc/init.d/svnserve /etc/init.d/svnserve startautoSvn的更多相关文章
- 利用crontab定时提交svn遇到的几个问题
交待下背景...公司开发组只有技术经理有服务器和数据库权限,还只是开发环境的..因为工作安排和权限限制,测试同学上线的时候,需要本人帮开发组的部分同事review代码并把代码提交到trunk.一开始手 ...
随机推荐
- Silverlight之我见
好长时间没搞Silverlight方面的开发了,原本都以为自己早已忘记,然而前阵子(确切一点说,是挺长时间以前了)的时候,发布Windows10的时候,微软宣布新的浏览器将重新开发,关键是后半句引起了 ...
- Nhibernate 分页功能
cs: public IEnumerable<ArticleView> MyGetAll(int start, int limit, ref int count) { try { var ...
- Python标准库与第三方库详解(转载)
转载地址: http://www.codeweblog.com/python%e6%a0%87%e5%87%86%e5%ba%93%e4%b8%8e%e7%ac%ac%e4%b8%89%e6%96%b ...
- Burp Suite Walkthrough(英文版)
Burp Suite is one of the best tools available for web application testing. Its wide variety of featu ...
- responsive design
http://www.chinaz.com/manage/2011/1121/221607.shtml http://alistapart.com/article/responsive-web-des ...
- public void Delete(List EntityList) where T : class, new()类型参数约束
查找后发现这是类型参数约束,.NET支持的类型参数约束有以下五种: where T : struct | T必须是一个结构类型 where T : class T必须是一个类(class)类型 whe ...
- WINDOWS 2008 SERVER域用户自动登陆
The user I wanted to auto-logon as didn’t have a password, this reg hack worked instead: HKEY_LOCAL_ ...
- 使用phpexecel类库导出数据
公司要求做一个功能:将数据库里的数据导出,并生成excel文件. 于是百度了下,集大牛之所长,加上自己之所长,做出了整理,并分享. 目标:使用phpexcel类库生成xml文件,并下载. 步骤一:下载 ...
- Linux中断处理流程
http://blog.csdn.net/dianhuiren/article/details/7468956
- Fast UI Draw (Intel出品)
Fast UI Draw in a library that provides a higher performance Canvas interface. It is designed so tha ...