mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 21:38:57 +08:00
fix: Fixed issue where original Compose file content was cleared during comparison (#10880)
This commit is contained in:
parent
9d84120181
commit
7fa39687b5
2 changed files with 4 additions and 2 deletions
|
|
@ -243,7 +243,7 @@ func (u *CronjobService) handleCleanLog(cronjob model.Cronjob, taskItem *task.Ta
|
||||||
}
|
}
|
||||||
appInstall, _ := getAppInstallByKey(constant.AppOpenresty)
|
appInstall, _ := getAppInstallByKey(constant.AppOpenresty)
|
||||||
if appInstall.ID > 0 {
|
if appInstall.ID > 0 {
|
||||||
curStr := i18n.GetWithName("CleanLogByName", "Openresty")
|
curStr := i18n.GetWithName("CleanLogByName", "OpenResty")
|
||||||
t.LogStart(curStr)
|
t.LogStart(curStr)
|
||||||
accessLogPath := path.Join(appInstall.GetPath(), "log", "access.log")
|
accessLogPath := path.Join(appInstall.GetPath(), "log", "access.log")
|
||||||
if err := os.Truncate(accessLogPath, 0); err != nil {
|
if err := os.Truncate(accessLogPath, 0); err != nil {
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,9 @@ const composeDiffRef = ref();
|
||||||
const rawCompose = ref('');
|
const rawCompose = ref('');
|
||||||
|
|
||||||
const getNewCompose = (compose: string) => {
|
const getNewCompose = (compose: string) => {
|
||||||
paramModel.dockerCompose = compose;
|
if (compose != '') {
|
||||||
|
paramModel.dockerCompose = compose;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const openDiff = () => {
|
const openDiff = () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue