fix-google-webdav-module-install

Simon Smith committed Sep 6, 2023 at 13:55 UTC 749d5b0ea5a917cfa137d9469df67b71598c3588
1 file changed +6 -6
meshcentral.js
+6 -6
@@ -4022,12 +4022,12 @@ function mainStart() {
4022 // Setup encrypted zip support if needed
4023 if (config.settings.autobackup && config.settings.autobackup.zippassword) {
4024 modules.push('archiver-zip-encrypted');
4025 - // Enable Google Drive Support
4026 - if (typeof config.settings.autobackup.googledrive == 'object') { modules.push('googleapis'); }
4027 - // Enable WebDAV Support
4028 - if (typeof config.settings.autobackup.webdav == 'object') {
4029 - 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'); }
4030 - }
4025 + }
4026 + // Enable Google Drive Support
4027 + if (typeof config.settings.autobackup.googledrive == 'object') { modules.push('googleapis'); }
4028 + // Enable WebDAV Support
4029 + if (typeof config.settings.autobackup.webdav == 'object') {
4030 + 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'); }
4031 }
4032
4033 // Setup common password blocking