mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-30 04:44:54 +01:00
Add start addon in orchestrator
This commit is contained in:
parent
2b639a0df5
commit
7abd6bab8b
@ -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