- 论坛徽章:
- 0
|
一个svn up 更新后再cp的脚本,直接执行能运行,但放在crontab中就不能运行了
代码大体如下
cd /data1/svn_root/trunk
svn update --username abc --password 111111
if [ $? -eq 0 ];
then
/bin/cp -rf /data1/svn_root/trunk/ /data1/lighttpd/htdocs/
else
echo "fail"
fi
放 crontab中跑时出现如下的提示
Error validating server certificate for 'https://svn.svn.xxx.com.cn:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: svn.xxx.com.cn
- Valid: from Apr 8 07:03:17 2008 GMT until Apr 6 07:03:17 2018 GMT
- Issuer: tech xxx, tech xxx, Beijing, XXX, CN
- Fingerprint: b9:9e:a1:0f:f1:e3:0a:cb:da:dc:ee:f3:25:c6:cc:c6:9a:08:44:4a:
(R)eject or accept (t)emporarily? svn: PROPFIND request failed on '/src/trunk/'
svn: PROPFIND of '/src/trunk/': Server certificate verification failed: issuer is not trusted (https://svn.xxx.com.cn)
看上面的错误,主要是提示用户名和密码,是吗?
但我svn up后面已经跟了正确的密码了。
是否还是其它的问题呢?
能不能在shell脚本 里模拟键盘输入提示的用户名和密码呢?
各位大大帮忙啊 |
|