Skip to content

Commit

Permalink
Update ExpertWindow.vue
Browse files Browse the repository at this point in the history
fixed formating and custom install volume problem
  • Loading branch information
PatrickRL committed Oct 2, 2024
1 parent f41e309 commit 6577650
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,9 @@ export default {
await ControlService.deleteSlasherVolume(this.item.config.serviceID);
this.item.yaml = this.item.yaml.replace(new RegExp(/\n^.*\/opt\/app\/slasher*$/gm), "");
} else if (this.item.yaml.includes("--slasher") && !this.item.yaml.includes("/opt/app/slasher")) {
let path = this.item.yaml.match(/^.*beacon:\/opt\/app\/beacon.*$/gm)[0].replace(new RegExp(/beacon/gm), "slasher");
this.item.yaml = this.item.yaml.replace("--slasher","--slasher\n - --slasher-dir=/opt/app/slasher");
this.item.yaml = this.item.yaml.replace("volumes:" ,"volumes:\n - /opt/stereum/lighthouse-" + this.item.config.serviceID +"/slasher:/opt/app/slasher")
this.item.yaml = this.item.yaml.replace("volumes:" ,"volumes:\n" + path)
}
}
if (this.item.service === "ErigonService") {
Expand Down

0 comments on commit 6577650

Please sign in to comment.