This commit is contained in:
陆柯 2021-02-14 10:57:03 +08:00
parent fce109d02d
commit 08fdf3c3fa
2 changed files with 4 additions and 3 deletions

View File

@ -4,9 +4,6 @@ read -p "Enter old hook path: >> " OLDPATH
read -p "Enter new hook path: >> " NEWPATH read -p "Enter new hook path: >> " NEWPATH
read -p "Enter repository root path: >> " REPOROOT read -p "Enter repository root path: >> " REPOROOT
echo '$REPOROOT'
echo "$REPOROOT"
sed -i "s:$OLDPATH:$NEWPATH:g" `grep "$OLDPATH" -rl $REPOROOT/*/*/hooks/` sed -i "s:$OLDPATH:$NEWPATH:g" `grep "$OLDPATH" -rl $REPOROOT/*/*/hooks/`
echo "Completed replacing $OLDPATH to $NEWPATH recursively in folder $REPOROOT" echo "Completed replacing $OLDPATH to $NEWPATH recursively in folder $REPOROOT"

View File

@ -1,2 +1,6 @@
# install
# sudo apt install subversion -y
# 不能用 PM2 启动会报错端口号被占用。可能因为svnserve本身就已经是服务。 # 不能用 PM2 启动会报错端口号被占用。可能因为svnserve本身就已经是服务。
svnserve -d -r ./svn.repo svnserve -d -r ./svn.repo