diff --git a/backend/app/api/v1/terminal.go b/backend/app/api/v1/terminal.go index da62dc2ed..568c4871f 100644 --- a/backend/app/api/v1/terminal.go +++ b/backend/app/api/v1/terminal.go @@ -105,7 +105,7 @@ func (b *BaseApi) RedisWsSsh(c *gin.Context) { defer killBash(redisConf.ContainerName, commands, pidMap) defer slave.Close() - tty, err := terminal.NewLocalWsSession(cols, rows, wsConn, slave, true) + tty, err := terminal.NewLocalWsSession(cols, rows, wsConn, slave, false) if wshandleError(wsConn, err) { return } @@ -173,7 +173,7 @@ func (b *BaseApi) ContainerWsSsh(c *gin.Context) { defer killBash(containerID, command, pidMap) defer slave.Close() - tty, err := terminal.NewLocalWsSession(cols, rows, wsConn, slave, false) + tty, err := terminal.NewLocalWsSession(cols, rows, wsConn, slave, true) if wshandleError(wsConn, err) { return } diff --git a/backend/app/service/backup.go b/backend/app/service/backup.go index d13569e72..d8554c80f 100644 --- a/backend/app/service/backup.go +++ b/backend/app/service/backup.go @@ -341,6 +341,7 @@ func (u *BackupService) Update(req dto.BackupOperate) error { _ = backupRepo.Update(req.ID, (map[string]interface{}{"vars": oldVars})) return err } + global.CONF.System.Backup = dirStr } } }