mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-09 19:12:58 +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(() => {
|
.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