[PR #319] [MERGED] Install MongoDB 4.2 for non-AVX CPUs in Unifi LXC #2680

Closed
opened 2026-02-26 13:31:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/319
Author: @DarmokNoob
Created: 11/17/2024
Status: Merged
Merged: 11/27/2024
Merged by: @MickLesk

Base: mainHead: unifi-lxc-noavx


📝 Commits (10+)

  • 02e1ff5 Put in check and alternative to install older Mongo for CPUs that can't support AVX
  • 5ffa697 Merge branch 'community-scripts:main' into unifi-lxc-noavx
  • 2a70d19 Update install/unifi-install.sh
  • 9b93376 Update install/unifi-install.sh
  • f776638 Update install/unifi-install.sh
  • 752ffe7 Update install/unifi-install.sh
  • d2bb47a Update install/unifi-install.sh
  • d48a9e4 Update install/unifi-install.sh
  • 6e89735 Update install/unifi-install.sh
  • b70fcbb Update install/unifi-install.sh

📊 Changes

3 files changed (+21 additions, -11 deletions)

View changed files

📝 ct/unifi.sh (+0 -4)
📝 install/unifi-install.sh (+19 -5)
📝 json/unifi.json (+2 -2)

📄 Description

Note

We are meticulous when it comes to merging code into the main branch, so please understand that we may reject pull requests that do not meet the project's standards. It's never personal. Also, game-related scripts have a lower chance of being merged.

Description

Alot of people including myself running Unifi Network controller, are running on older or low power CPUs that don't support AVX Instructions. I have spent hours working on this script to provide an alternative option for any user running a CPU that doesn't support AVX. Upon detection instead of exiting the script, the user is presented with an alternative(s). In this PR they are offered the option to install an older version of MongoDB that doesn't require AVX. It also checks for any missing dependencies associated with the older version of mongo and installs them. This will run the latest version of the Unifi Controller 8.6.1.

Fixes # (issue)

Type of change

Please check the relevant option(s):

  • Bug fix (non-breaking change that resolves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (a fix or feature that would cause existing functionality to change unexpectedly)
  • New script (a fully functional and thoroughly tested script or set of scripts.)

Prerequisites

The following efforts must be made for the PR to be considered. Please check when completed:

  • Self-review performed (I have reviewed my code, ensuring it follows established patterns and conventions)
  • Testing performed (I have tested my changes, ensuring everything works as expected)
  • Documentation updated (I have updated any relevant documentation)

Additional Information (optional)

Provide any additional context or screenshots about the feature or fix here.

I was working on building a VM to handle the issue, allowing them to install the latest and greatest version of Mongo because the AVX could be emulated in a VM, but the processes required in instructing a VM from the terminal vs instructing an LXC are more complicated. I'll submit that as a seperate PR once its done. I just included it as an option to let any future user's know its coming.

If there are other pull requests or discussions related to this change, please link them here:

  • Related PR #

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/319 **Author:** [@DarmokNoob](https://github.com/DarmokNoob) **Created:** 11/17/2024 **Status:** ✅ Merged **Merged:** 11/27/2024 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `unifi-lxc-noavx` --- ### 📝 Commits (10+) - [`02e1ff5`](https://github.com/community-scripts/ProxmoxVE/commit/02e1ff561efa1e11aea25141024c1498e87aa65a) Put in check and alternative to install older Mongo for CPUs that can't support AVX - [`5ffa697`](https://github.com/community-scripts/ProxmoxVE/commit/5ffa697312b89febc7225289a70a5366bfd87dcf) Merge branch 'community-scripts:main' into unifi-lxc-noavx - [`2a70d19`](https://github.com/community-scripts/ProxmoxVE/commit/2a70d19b906e7a5b15302d3e5f23ac50fa566746) Update install/unifi-install.sh - [`9b93376`](https://github.com/community-scripts/ProxmoxVE/commit/9b9337690e3713ace85b6d68c4ae168cb6fbd80f) Update install/unifi-install.sh - [`f776638`](https://github.com/community-scripts/ProxmoxVE/commit/f776638a5cad981df18f1f7cce82316087bf3b54) Update install/unifi-install.sh - [`752ffe7`](https://github.com/community-scripts/ProxmoxVE/commit/752ffe7a95df216140e6fa9d7d37ecdb4679a839) Update install/unifi-install.sh - [`d2bb47a`](https://github.com/community-scripts/ProxmoxVE/commit/d2bb47af09f82d1b27f307df813b9f1eefa4c2ba) Update install/unifi-install.sh - [`d48a9e4`](https://github.com/community-scripts/ProxmoxVE/commit/d48a9e44c2388181e607accb6bd871570ad55ed4) Update install/unifi-install.sh - [`6e89735`](https://github.com/community-scripts/ProxmoxVE/commit/6e89735217d8d42553d0e13969664d776265a500) Update install/unifi-install.sh - [`b70fcbb`](https://github.com/community-scripts/ProxmoxVE/commit/b70fcbb6b039ba1f6b4d7ba77be57310a282142d) Update install/unifi-install.sh ### 📊 Changes **3 files changed** (+21 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `ct/unifi.sh` (+0 -4) 📝 `install/unifi-install.sh` (+19 -5) 📝 `json/unifi.json` (+2 -2) </details> ### 📄 Description > [!NOTE] > We are meticulous when it comes to merging code into the main branch, so please understand that we may reject pull requests that do not meet the project's standards. It's never personal. Also, game-related scripts have a lower chance of being merged. ## Description Alot of people including myself running Unifi Network controller, are running on older or low power CPUs that don't support AVX Instructions. I have spent hours working on this script to provide an alternative option for any user running a CPU that doesn't support AVX. Upon detection instead of exiting the script, the user is presented with an alternative(s). In this PR they are offered the option to install an older version of MongoDB that doesn't require AVX. It also checks for any missing dependencies associated with the older version of mongo and installs them. This will run the latest version of the Unifi Controller 8.6.1. Fixes # (issue) ## Type of change Please check the relevant option(s): - [ ] Bug fix (non-breaking change that resolves an issue) - [X] New feature (non-breaking change that adds functionality) - [ ] Breaking change (a fix or feature that would cause existing functionality to change unexpectedly) - [ ] New script (a fully functional and thoroughly tested script or set of scripts.) ## Prerequisites The following efforts must be made for the PR to be considered. Please check when completed: - [X] Self-review performed (I have reviewed my code, ensuring it follows established patterns and conventions) - [X] Testing performed (I have tested my changes, ensuring everything works as expected) - [X] Documentation updated (I have updated any relevant documentation) ## Additional Information (optional) Provide any additional context or screenshots about the feature or fix here. I was working on building a VM to handle the issue, allowing them to install the latest and greatest version of Mongo because the AVX could be emulated in a VM, but the processes required in instructing a VM from the terminal vs instructing an LXC are more complicated. I'll submit that as a seperate PR once its done. I just included it as an option to let any future user's know its coming. ## Related Pull Requests / Discussions If there are other pull requests or discussions related to this change, please link them here: - Related PR # --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 13:31:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#2680
No description provided.