mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-05 00:52:59 +01:00
Add start addon in orchestrator
This commit is contained in:
parent
13883ab883
commit
f0e603431c
@ -84,6 +84,9 @@ export function doBackupWorkflow(type: WorkflowType) {
|
||||
);
|
||||
}
|
||||
})
|
||||
.then(() => {
|
||||
return homeAssistantService.startAddons(addonsToStartStop);
|
||||
})
|
||||
.then(() => {
|
||||
logger.info("Backup workflow finished successfully !");
|
||||
messageManager.info("Backup workflow finished successfully !");
|
||||
@ -104,8 +107,7 @@ export function doBackupWorkflow(type: WorkflowType) {
|
||||
|
||||
// This methods remove addon that are no installed in HA from the conf array
|
||||
function sanitizeAddonList(addonInConf: string[], addonInHA: AddonModel[]) {
|
||||
addonInConf.filter((value) => addonInHA.some((v) => v.slug == value));
|
||||
return addonInConf;
|
||||
return addonInConf.filter((value) => addonInHA.some((v) => v.slug == value));
|
||||
}
|
||||
|
||||
function getAddonToBackup(excludedAddon: string[], addonInHA: AddonModel[]) {
|
||||
|
Loading…
Reference in New Issue
Block a user