fix monogdb-js/saslprep actually needs installing #7265

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458
2025-09-30 17:45:21 +01:00
parent 4c9729290d
commit f2a2676cbb
2 changed files with 2 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ RUN case "$INCLUDE_MONGODB_TOOLS" in \
apk add --no-cache mongodb-tools && \ apk add --no-cache mongodb-tools && \
cd meshcentral && \ cd meshcentral && \
echo -e "----------\nPREINSTALLING MONGODB LIBRARIES...\n----------"; \ echo -e "----------\nPREINSTALLING MONGODB LIBRARIES...\n----------"; \
npm install mongodb@4.17.2;; \ npm install mongodb@4.17.2 @mongodb-js/saslprep@1.3.1;; \
false|no|FALSE|NO) \ false|no|FALSE|NO) \
echo "Not including MongoDB Tools.";; \ echo "Not including MongoDB Tools.";; \
*) \ *) \

View File

@@ -4337,7 +4337,7 @@ function mainStart() {
if (config.settings.mqtt != null) { modules.push('aedes@0.39.0'); } // Add MQTT Modules if (config.settings.mqtt != null) { modules.push('aedes@0.39.0'); } // Add MQTT Modules
if (config.settings.mysql != null) { modules.push('mysql2@3.11.4'); } // Add MySQL. if (config.settings.mysql != null) { modules.push('mysql2@3.11.4'); } // Add MySQL.
//if (config.settings.mysql != null) { modules.push('@mysql/xdevapi@8.0.33'); } // Add MySQL, official driver (https://dev.mysql.com/doc/dev/connector-nodejs/8.0/) //if (config.settings.mysql != null) { modules.push('@mysql/xdevapi@8.0.33'); } // Add MySQL, official driver (https://dev.mysql.com/doc/dev/connector-nodejs/8.0/)
if (config.settings.mongodb != null) { modules.push('mongodb@4.17.2'); } // Add MongoDB, official driver. 4.17.0 and above now includes saslprep by default https://github.com/mongodb/node-mongodb-native/releases/tag/v4.17.0 if (config.settings.mongodb != null) { modules.push('mongodb@4.17.2'); modules.push('@mongodb-js/saslprep@1.3.1')} // Add MongoDB, official driver.
if (config.settings.postgres != null) { modules.push('pg@8.14.1') } // Add Postgres, official driver. if (config.settings.postgres != null) { modules.push('pg@8.14.1') } // Add Postgres, official driver.
if (config.settings.mariadb != null) { modules.push('mariadb@3.4.0'); } // Add MariaDB, official driver. if (config.settings.mariadb != null) { modules.push('mariadb@3.4.0'); } // Add MariaDB, official driver.
if (config.settings.acebase != null) { modules.push('acebase@1.29.5'); } // Add AceBase, official driver. if (config.settings.acebase != null) { modules.push('acebase@1.29.5'); } // Add AceBase, official driver.