PUPPET:SVN Script

Source: Internet
Author: User
Tags svn
#!/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 start

Usage Description: SVN co svn://ip/puppet user and password are test

PS: A new line anon-access convenient for clients to view SVN server submitted log

Source: http://tntdba.blog.51cto.com/1199791/1131484

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.