This is an automated email from the ASF dual-hosted git repository. nic pushed a commit to branch 2.6.x in repository https://gitbox.apache.org/repos/asf/kylin.git
commit 099326ba161acd9c9eea55784db10ade95a58d91 Author: ITzhangqiang <[email protected]> AuthorDate: Wed Oct 30 15:22:19 2019 +0800 KYLIN-4198 “bin/system-cube.sh cron” will overwrite user's crontab (#893) * KYLIN-4198 Fix * KYLIN-4198 "bin/system-cube.sh cron" will overwrite user's crontab --- build/bin/system-cube.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/bin/system-cube.sh b/build/bin/system-cube.sh index b717db0..504c1e4 100644 --- a/build/bin/system-cube.sh +++ b/build/bin/system-cube.sh @@ -104,7 +104,8 @@ then echo "add to a crontab job" CRONTAB_FILE=$KYLIN_HOME/crontabJob - cat <<-EOF > ${CRONTAB_FILE} + crontab -l >> ${CRONTAB_FILE} + cat <<-EOF >> ${CRONTAB_FILE} 0 */2 * * * sh ${KYLIN_HOME}/bin/build-incremental-cube.sh ${SC_NAME_1} 3600000 1200000 20 */2 * * * sh ${KYLIN_HOME}/bin/build-incremental-cube.sh ${SC_NAME_2} 3600000 1200000 40 */4 * * * sh ${KYLIN_HOME}/bin/build-incremental-cube.sh ${SC_NAME_3} 3600000 1200000 @@ -115,4 +116,4 @@ then rm ${CRONTAB_FILE} else printHelp -fi \ No newline at end of file +fi
