mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-06-16 05:55:33 +00:00
fix bug (#198)
This commit is contained in:
parent
05425d638f
commit
6bd41ad016
@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
## [0.3.1.1] - 2022-05-17
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix the data loss problem when importing local applications
|
||||||
|
|
||||||
## [0.3.1] - 2022-05-16
|
## [0.3.1] - 2022-05-16
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -1268,10 +1268,10 @@ func ContainerUpdateInfo(c *gin.Context) {
|
|||||||
var vol model.PathArray
|
var vol model.PathArray
|
||||||
// json2.Unmarshal([]byte(appInfo.Volumes), &vol)
|
// 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{
|
temp := model.PathMap{
|
||||||
Path: strings.ReplaceAll(info.HostConfig.Mounts[i].Source, "$AppID", info.Name),
|
Path: strings.ReplaceAll(info.Mounts[i].Source, "$AppID", info.Name),
|
||||||
ContainerPath: info.HostConfig.Mounts[i].Target,
|
ContainerPath: info.Mounts[i].Destination,
|
||||||
}
|
}
|
||||||
vol = append(vol, temp)
|
vol = append(vol, temp)
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: LinkLeong link@icewhale.com
|
* @Author: LinkLeong link@icewhale.com
|
||||||
* @Date: 2022-02-17 18:53:22
|
* @Date: 2022-02-17 18:53:22
|
||||||
* @LastEditors: LinkLeong
|
* @LastEditors: LinkLeong
|
||||||
* @LastEditTime: 2022-05-13 18:08:25
|
* @LastEditTime: 2022-05-17 12:52:47
|
||||||
* @FilePath: /CasaOS/types/system.go
|
* @FilePath: /CasaOS/types/system.go
|
||||||
* @Description:
|
* @Description:
|
||||||
* @Website: https://www.casaos.io
|
* @Website: https://www.casaos.io
|
||||||
@ -10,6 +10,6 @@
|
|||||||
*/
|
*/
|
||||||
package types
|
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>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user