mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Adds a 'database' snap setting (mongodb|ferretdb). A new ferretdb service runs FerretDB v1 (SQLite) on the same port MongoDB would use; only one database runs at a time. The configure hook flips the two services when the setting changes, mongodb-control disables itself when ferretdb is selected, and wekan-control drops MONGO_OPLOG_URL for FerretDB (which has no replica-set oplog, so WeKan uses polling) and waits on a plain ping instead of rs.status(). The FerretDB binary ships inside the WeKan bundle the wekan part already downloads, so no extra build is needed. New installs default to FerretDB on all platforms via the install hook (fresh installs only; upgrades keep MongoDB, and a pre-existing MongoDB data dir is detected and kept). Switch with 'snap set wekan database=mongodb'. mongosh collects anonymized usage analytics by default and the snap invokes it several times; disable it (writable HOME + disableTelemetry) so nothing phones home. mongod itself has no phone-home telemetry (Free Monitoring is opt-in). Thanks to xet7.