mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-08-18 05:44:54 +02: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.stop();
|
||||||
this.cronJob = null;
|
this.cronJob = null;
|
||||||
}
|
}
|
||||||
|
if(!checkConfig(settingsTools.getSettings())){
|
||||||
|
console.log("No Cron settings available.")
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (settings.cron_base) {
|
switch (settings.cron_base) {
|
||||||
case '0':
|
case '0':
|
||||||
console.log("No Cron settings available.")
|
console.log("No Cron settings available.")
|
||||||
|
Loading…
Reference in New Issue
Block a user