From 045ce83aaac26112a1e997bca31bd963942d4dda Mon Sep 17 00:00:00 2001 From: aaronchen2k <462826@qq.com> Date: Fri, 31 Jan 2020 21:19:43 +0800 Subject: [PATCH] enable git sync in sys.cron --- bin/init.sh | 4 ++-- module/repo/lang/zh-cn.php | 1 + module/repo/view/create.html.php | 2 +- module/repo/view/edit.html.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/init.sh b/bin/init.sh index 90d26141f8..5447e94c1b 100755 --- a/bin/init.sh +++ b/bin/init.sh @@ -140,8 +140,8 @@ echo "#min hour day month week command." >> $basePath/cron/sys.cron echo "0 1 * * * $basePath/dailyreminder.sh # dailyreminder." >> $basePath/cron/sys.cron echo "1 1 * * * $basePath/backup.sh # backup database and file." >> $basePath/cron/sys.cron echo "1 23 * * * $basePath/computeburn.sh # compute burndown chart." >> $basePath/cron/sys.cron -echo "1-59/2 * * * * $basePath/syncsvn.sh # sync subversion." >> $basePath/cron/sys.cron -#echo "1-59/2 * * * * $basePath/syncgit.sh # sync git." >> $basePath/cron/sys.cron +echo "1-59/5 * * * * $basePath/syncsvn.sh # sync subversion." >> $basePath/cron/sys.cron +echo "1-59/5 * * * * $basePath/syncgit.sh # sync git." >> $basePath/cron/sys.cron echo "1-59/5 * * * * $basePath/sendmail.sh # async send mail." >> $basePath/cron/sys.cron echo "1-59/5 * * * * $basePath/sendwebhook.sh # async send webhook." >> $basePath/cron/sys.cron echo "1 1 * * * $basePath/createcycle.sh # create cycle todo." >> $basePath/cron/sys.cron diff --git a/module/repo/lang/zh-cn.php b/module/repo/lang/zh-cn.php index 5024f40556..201fedb793 100644 --- a/module/repo/lang/zh-cn.php +++ b/module/repo/lang/zh-cn.php @@ -138,6 +138,7 @@ $lang->repo->error->output = "执行命令:%s\n错误结果(%s): %s\n $lang->repo->error->clientVersion = "客户端版本过低,请升级或更换SVN客户端"; $lang->repo->error->encoding = "编码可能错误,请更换编码重试。"; +$lang->repo->tips = '请参照这里,设置版本库定时同步。'; $lang->repo->example = new stdclass(); $lang->repo->example->client = "例如:/usr/bin/svn, C:\subversion\svn.exe, /usr/bin/git"; $lang->repo->example->path = "例如:SVN: http://example.googlecode.com/svn/, GIT: /homt/test"; diff --git a/module/repo/view/create.html.php b/module/repo/view/create.html.php index 7721f293ba..5c431b3e98 100644 --- a/module/repo/view/create.html.php +++ b/module/repo/view/create.html.php @@ -22,7 +22,7 @@ - + diff --git a/module/repo/view/edit.html.php b/module/repo/view/edit.html.php index bb2eda3eca..45c8f37a58 100644 --- a/module/repo/view/edit.html.php +++ b/module/repo/view/edit.html.php @@ -22,7 +22,7 @@
repo->tips; ?>
repo->type; ?>
- +
repo->tips; ?>
repo->type; ?>