mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 11:56:08 +08:00
diy.sh重命名为extra.sh,防止与diy命令混淆
This commit is contained in:
parent
d5b9bca68b
commit
16ad626b43
|
@ -30,8 +30,8 @@ export default (app: Router) => {
|
||||||
let shareCodeFile = getLastModifyFilePath(config.shareCodeDir);
|
let shareCodeFile = getLastModifyFilePath(config.shareCodeDir);
|
||||||
content = getFileContentByName(shareCodeFile);
|
content = getFileContentByName(shareCodeFile);
|
||||||
break;
|
break;
|
||||||
case 'diy':
|
case 'extra':
|
||||||
content = getFileContentByName(config.diyFile);
|
content = getFileContentByName(config.extraFile);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -12,7 +12,7 @@ const crontabFile = path.join(rootPath, 'config/crontab.list');
|
||||||
const confBakDir = path.join(rootPath, 'config/bak/');
|
const confBakDir = path.join(rootPath, 'config/bak/');
|
||||||
const authConfigFile = path.join(rootPath, 'config/auth.json');
|
const authConfigFile = path.join(rootPath, 'config/auth.json');
|
||||||
const shareCodeDir = path.join(rootPath, 'log/export_sharecodes/');
|
const shareCodeDir = path.join(rootPath, 'log/export_sharecodes/');
|
||||||
const diyFile = path.join(rootPath, 'config/diy.sh');
|
const extraFile = path.join(rootPath, 'config/extra.sh');
|
||||||
const logPath = path.join(rootPath, 'log/');
|
const logPath = path.join(rootPath, 'log/');
|
||||||
const authError = '错误的用户名密码,请重试';
|
const authError = '错误的用户名密码,请重试';
|
||||||
const loginFaild = '请先登录!';
|
const loginFaild = '请先登录!';
|
||||||
|
@ -38,7 +38,7 @@ export default {
|
||||||
loginFaild,
|
loginFaild,
|
||||||
authError,
|
authError,
|
||||||
logPath,
|
logPath,
|
||||||
diyFile,
|
extraFile,
|
||||||
shareCodeDir,
|
shareCodeDir,
|
||||||
authConfigFile,
|
authConfigFile,
|
||||||
confBakDir,
|
confBakDir,
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
fileMap: {
|
fileMap: {
|
||||||
'config.sh': confFile,
|
'config.sh': confFile,
|
||||||
'crontab.list': crontabFile,
|
'crontab.list': crontabFile,
|
||||||
'diy.sh': diyFile,
|
'extra.sh': extraFile,
|
||||||
},
|
},
|
||||||
dbPath,
|
dbPath,
|
||||||
cronDbFile,
|
cronDbFile,
|
||||||
|
|
|
@ -571,8 +571,8 @@ export JOY_RUN_HELP_MYSELF=""
|
||||||
|
|
||||||
################################## 是否添加DIY脚本(选填) ##################################
|
################################## 是否添加DIY脚本(选填) ##################################
|
||||||
## 如果你自己会写shell脚本,并且希望在每次git_pull.sh这个脚本运行时,额外运行你的DIY脚本,请赋值为 "true"
|
## 如果你自己会写shell脚本,并且希望在每次git_pull.sh这个脚本运行时,额外运行你的DIY脚本,请赋值为 "true"
|
||||||
## 同时,请务必将你的脚本命名为 diy.sh (只能叫这个文件名),放在 config 目录下
|
## 同时,请务必将你的脚本命名为 extra.sh (只能叫这个文件名),放在 config 目录下
|
||||||
## 仓库下已经上传diy.sh模板,如果你想使用;可以参考本仓库下 diy.sh 文件;地址:https://raw.githubusercontent.com/dockere/jd-base/master/sample/diy.sh
|
## 仓库下已经上传extra.sh模板,如果你想使用;可以参考本仓库下 extra.sh 文件;地址:https://raw.githubusercontent.com/dockere/jd-base/master/sample/diy.sh
|
||||||
EnableExtraShell=""
|
EnableExtraShell=""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ const Crontab = () => {
|
||||||
const updateConfig = () => {
|
const updateConfig = () => {
|
||||||
request
|
request
|
||||||
.post(`${config.apiPrefix}save`, {
|
.post(`${config.apiPrefix}save`, {
|
||||||
data: { content: value, name: 'diy.sh' },
|
data: { content: value, name: 'extra.sh' },
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
notification.success({
|
notification.success({
|
||||||
|
@ -50,7 +50,7 @@ const Crontab = () => {
|
||||||
return (
|
return (
|
||||||
<PageContainer
|
<PageContainer
|
||||||
className="code-mirror-wrapper"
|
className="code-mirror-wrapper"
|
||||||
title="diy.sh"
|
title="extra.sh"
|
||||||
extra={[
|
extra={[
|
||||||
<Button key="1" type="primary" onClick={updateConfig}>
|
<Button key="1" type="primary" onClick={updateConfig}>
|
||||||
保存
|
保存
|
||||||
|
|
Loading…
Reference in New Issue
Block a user