diy支持任意仓库地址,修复添加ck报错,移除monk仓库内置

This commit is contained in:
whyour
2021-04-16 17:30:22 +08:00
parent 5de67b9679
commit 0563555a6a
7 changed files with 54 additions and 66 deletions
+11 -17
View File
@@ -16,23 +16,17 @@ const initData = [
status: CrontabStatus.idle,
},
{
name: '自定义仓库',
command: `sleep ${randomSchedule(
60,
1,
)} && diy whyour hundun "quanx/jx|quanx/jd" tokens >> $QL_DIR/log/diy_pull.log 2>&1`,
schedule: `${randomSchedule(60, 1)} ${randomSchedule(
24,
6,
).toString()} * * *`,
status: CrontabStatus.idle,
name: 'build面板',
command: 'rebuild >> ${QL_DIR}/log/rebuild.log 2>&1',
schedule: '30 7 */7 * *',
status: CrontabStatus.disabled,
},
{
name: '自定义仓库',
command: `sleep ${randomSchedule(
60,
1,
)} && diy monk-coder dust "i-chenzhe|normal" >> $QL_DIR/log/diy_pull.log 2>&1`,
)} && diy whyour hundun "quanx/jx|quanx/jd" tokens >> $QL_DIR/log/diy_pull.log 2>&1`,
schedule: `${randomSchedule(60, 1)} ${randomSchedule(
24,
6,
@@ -45,12 +39,6 @@ const initData = [
schedule: '48 5 * * *',
status: CrontabStatus.idle,
},
{
name: 'build面板',
command: 'rebuild >> ${QL_DIR}/log/rebuild.log 2>&1',
schedule: '30 7 */7 * *',
status: CrontabStatus.disabled,
},
{
name: '删除日志',
command: 'rm_log >/dev/null 2>&1',
@@ -63,6 +51,12 @@ const initData = [
schedule: '33 6 */7 * *',
status: CrontabStatus.disabled,
},
{
name: '启动挂机程序',
command: 'js hangup',
schedule: '33 6 */7 * *',
status: CrontabStatus.disabled,
},
{
name: '运行所有脚本(慎用)',
command: 'js runall',