mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-12-23 22:46:44 +01:00
🔨 Fix cron started if conf not exist
This commit is contained in:
parent
31bc96cb7f
commit
0b803005d4
@ -68,6 +68,11 @@ class CronContainer {
|
||||
this.cronJob.stop();
|
||||
this.cronJob = null;
|
||||
}
|
||||
if(!checkConfig(settingsTools.getSettings())){
|
||||
console.log("No Cron settings available.")
|
||||
return;
|
||||
}
|
||||
|
||||
switch (settings.cron_base) {
|
||||
case '0':
|
||||
console.log("No Cron settings available.")
|
||||
|
Loading…
Reference in New Issue
Block a user