Skip to content

Commit

Permalink
update mythic-cli to remove old volume when adding 3rd party services
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Jan 29, 2024
1 parent 34ab89c commit ebef87d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Mythic_CLI/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 0.2.8 - 2024-01-29

### Changed

- Updated the addition of 3rd party containers to remove existing volumes if they exist

## 0.2.7 - 2024-01-29

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Mythic_CLI/src/cmd/config/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ package config

var (
// Version Mythic CLI version
Version = "v0.2.7"
Version = "v0.2.8"
)
2 changes: 2 additions & 0 deletions Mythic_CLI/src/cmd/internal/serviceMetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,8 @@ func Add3rdPartyService(service string, additionalConfigs map[string]interface{}
pStruct["volumes"] = []string{
volumeName + ":/Mythic/",
}
// blow away the old volume just in case to make sure we don't carry over old data
manager.GetManager().RemoveVolume(volumeName)
// add our new volume to the list of volumes if needed
volumes, _ := manager.GetManager().GetVolumes()
volumes[volumeName] = map[string]string{
Expand Down

0 comments on commit ebef87d

Please sign in to comment.