Skip to content

Commit

Permalink
fix bug (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong authored May 17, 2022
1 parent 05425d6 commit 6bd41ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [0.3.1.1] - 2022-05-17

### Fixed

- Fix the data loss problem when importing local applications

## [0.3.1] - 2022-05-16

### Added
Expand Down
6 changes: 3 additions & 3 deletions route/v1/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1268,10 +1268,10 @@ func ContainerUpdateInfo(c *gin.Context) {
var vol model.PathArray
// json2.Unmarshal([]byte(appInfo.Volumes), &vol)

for i := 0; i < len(info.HostConfig.Mounts); i++ {
for i := 0; i < len(info.Mounts); i++ {
temp := model.PathMap{
Path: strings.ReplaceAll(info.HostConfig.Mounts[i].Source, "$AppID", info.Name),
ContainerPath: info.HostConfig.Mounts[i].Target,
Path: strings.ReplaceAll(info.Mounts[i].Source, "$AppID", info.Name),
ContainerPath: info.Mounts[i].Destination,
}
vol = append(vol, temp)
}
Expand Down
6 changes: 3 additions & 3 deletions types/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* @Author: LinkLeong [email protected]
* @Date: 2022-02-17 18:53:22
* @LastEditors: LinkLeong
* @LastEditTime: 2022-05-13 18:08:25
* @LastEditTime: 2022-05-17 12:52:47
* @FilePath: /CasaOS/types/system.go
* @Description:
* @Website: https://www.casaos.io
* Copyright (c) 2022 by icewhale, All Rights Reserved.
*/
package types

const CURRENTVERSION = "0.3.1"
const CURRENTVERSION = "0.3.1.1"

const BODY = ""
const BODY = "<li>Fix the data loss problem when importing local applications</li>"

0 comments on commit 6bd41ad

Please sign in to comment.