Loading

Linux svn定时更新

1、进入网站根目录,

2、创建脚本文件,update.sh,输入下面内容并保存退出

#!/bin/sh
while true
do
svn update --username svn用户名 --password svn密码
sleep 10
done

3、将脚本修改为可执行文件

chmod -R 777 update.sh

4、后台执行脚本(会产生一个 no.hup.out 文件记录更新信息)

nohup ./update.sh

或者

nohup ./update.sh > update.out

 

### 执行脚本的时候里面可能会出现下面这种情况:

Store password unencrypted (yes/no)? svn: E000009: Unable to connect to a repository at URL 'https://14.152.95.90:8443/svn/eejaa'
svn: E000009: Can't read stdin: Bad file descriptor

 

 解决办法就是将 store-plaintext-passwords 改为 yes 就可以了

posted @ 2020-12-03 13:55  头牌彭鱼宴、  阅读(145)  评论(0编辑  收藏  举报