mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 01:02: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(() => {
|
.then(() => {
|
||||||
logger.info("Backup workflow finished successfully !");
|
logger.info("Backup workflow finished successfully !");
|
||||||
messageManager.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
|
// This methods remove addon that are no installed in HA from the conf array
|
||||||
function sanitizeAddonList(addonInConf: string[], addonInHA: AddonModel[]) {
|
function sanitizeAddonList(addonInConf: string[], addonInHA: AddonModel[]) {
|
||||||
addonInConf.filter((value) => addonInHA.some((v) => v.slug == value));
|
return addonInConf.filter((value) => addonInHA.some((v) => v.slug == value));
|
||||||
return addonInConf;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAddonToBackup(excludedAddon: string[], addonInHA: AddonModel[]) {
|
function getAddonToBackup(excludedAddon: string[], addonInHA: AddonModel[]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user