From 749d5b0ea5a917cfa137d9469df67b71598c3588 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Wed, 6 Sep 2023 13:55:04 +0100 Subject: [PATCH] fix-google-webdav-module-install --- meshcentral.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/meshcentral.js b/meshcentral.js index 981401d7..7f9fe92e 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -4022,12 +4022,12 @@ function mainStart() { // Setup encrypted zip support if needed if (config.settings.autobackup && config.settings.autobackup.zippassword) { modules.push('archiver-zip-encrypted'); - // Enable Google Drive Support - if (typeof config.settings.autobackup.googledrive == 'object') { modules.push('googleapis'); } - // Enable WebDAV Support - if (typeof config.settings.autobackup.webdav == 'object') { - if ((typeof config.settings.autobackup.webdav.url != 'string') || (typeof config.settings.autobackup.webdav.username != 'string') || (typeof config.settings.autobackup.webdav.password != 'string')) { addServerWarning("Missing WebDAV parameters.", 2, null, !args.launch); } else { modules.push('webdav@4.11.2'); } - } + } + // Enable Google Drive Support + if (typeof config.settings.autobackup.googledrive == 'object') { modules.push('googleapis'); } + // Enable WebDAV Support + if (typeof config.settings.autobackup.webdav == 'object') { + if ((typeof config.settings.autobackup.webdav.url != 'string') || (typeof config.settings.autobackup.webdav.username != 'string') || (typeof config.settings.autobackup.webdav.password != 'string')) { addServerWarning("Missing WebDAV parameters.", 2, null, !args.launch); } else { modules.push('webdav@4.11.2'); } } // Setup common password blocking