mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 17:22:58 +01:00
🔨 Move autoclean local before nextcloud
If Nexcloud is not connected, clean local anyway
This commit is contained in:
parent
19c878bffa
commit
012b2de08a
@ -138,14 +138,15 @@ class CronContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_clean() {
|
_clean() {
|
||||||
let autoCleanCloud = settingsTools.getSettings().auto_clean_backup;
|
|
||||||
if (autoCleanCloud != null && autoCleanCloud === "true") {
|
|
||||||
this.clean().catch();
|
|
||||||
}
|
|
||||||
let autoCleanlocal = settingsTools.getSettings().auto_clean_local;
|
let autoCleanlocal = settingsTools.getSettings().auto_clean_local;
|
||||||
if (autoCleanlocal != null && autoCleanlocal === "true") {
|
if (autoCleanlocal != null && autoCleanlocal === "true") {
|
||||||
hassioApiTools.clean();
|
hassioApiTools.clean();
|
||||||
}
|
}
|
||||||
|
let autoCleanCloud = settingsTools.getSettings().auto_clean_backup;
|
||||||
|
if (autoCleanCloud != null && autoCleanCloud === "true") {
|
||||||
|
this.clean().catch();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user