Linux is very troublesome to build SVN repository every time. If you implement these through shell scripts, it will be much simpler. How to compile this shell script? The following small series will introduce you to the way Linux uses the shell script to create the SVN repository.
Every time build a new SVN repository always feel very cumbersome, so added a script to automate this process, the detailed code is as follows:
#! /bin/bash
# by www.111cn.net
echo -n “Enter SVN name :”
read svn_name
/usr /bin/svnadmin create /svnroot/$svn_name
if [ $? -eq 0 ]; then
# svnserve.conf
sed -i ‘s/# anon-access = read/anon-access = none/g’ /svnroot/$svn_name/Conf/svnserve.conf
sed -i ‘s/# auth-access = write/auth-access = write/g’ /svnroot/$svn_name/conf/svnserve.conf
Sed -i ‘s/# password-db = passwd/password-db = \\/svnroot\\/conf\\/passwd/g’ /svnroot/$svn_name/conf/svnserve.conf
sed -i ‘s/# authz-db = authz/authz-db = authz/g’ /svnroot/$svn_name/conf/svnserve.conf
# authz
cat 》 /svnroot/$ Svn_name/conf/authz""EOF
[groups]
developer = jason
[/]
@developer = rw
EOF
fi
The above is a description of how Linux uses shell scripts to build SVN repositories. If you are tired of manually creating SVN repositories again and again, you can quickly implement them through shell scripts.
Someone found an interesting problem in the Linux system, that is, the audio file cannot be played o
Many users in the Linux system are exposed to shorter commands, and hadoop dfs commands are more dif
As a computer system, its desktop design is very important. Although the Linux desk
Some Linux users do not know how to install Visual Studio Code after using Ubuntu s
Which is better for Linux compression tools gzip and pigz?
Detailed steps for mounting Windows shared files in Linux
Linux SecureCRT Chinese garbled how to do?
How to change the jenkins port number on Ubuntu
Ubuntu14.04 does not support U disk exfat format how to do?
How to open the recycle bin function in Linux
How Linux sets IPMI through the command line
How to configure yum source in CentOS system
Linux system how to set the read access of the .net IIS metabase
Ubuntu replaces the Firefox version of the method
How to add Swap to Ubuntu boot entry?
How to use the chown command to change the owner of the Linux file
Win7 cannot use the key combination Ctrl+Alt+Del to bring up the task manager
How to view the patch update record in Win8 computer
Windows 10 system Windows Defender can not start the repair method
Upgrade download Win10 Build 10159 card at 0% how to do?
How to completely remove oneDriver without the local strategy win8 system?
Linux system file permissions setting skills
160WiFi common problem solving
The perfect solution for the Notepad can't be opened in Windows7 Pure Edition system
Windows operating system acceleration installation experience