[PR #2047] Make install.sh work with RHEL-based distros #3844

Open
opened 2026-03-14 07:42:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amidaware/tacticalrmm/pull/2047
Author: @egg82
Created: 10/25/2024
Status: 🔄 Open

Base: developHead: rhel-installer


📝 Commits (2)

  • b0aa813 Update install.sh for RHEL-based systems
  • 0d73425 Fix postgres service names

📊 Changes

1 file changed (+260 additions, -92 deletions)

View changed files

📝 install.sh (+260 -92)

📄 Description

Similar to #2046

Changes made:

  • Uses /etc/os-release to determine OS type
  • Uses command -v dnf to determine if dnf is available, and falls back to yum if not
  • Uses yum/dnf in place of apt and apt-get where applicable
  • Changes support (unsupported) wording
  • Changes locale wording when in a RHEL environment
  • Trades apt keyrings for yum GPG keys where applicable
  • Slightly changes postgres install and initialization (and service name) for RHEL-based systems
  • Changes www-data for nginx user/group where applicable
  • Installs pango, pango-devel, cairo, cairo-devel, and libffi-devel from proper sources when in a RHEL environment
  • Uses pyenv to install proper python version when in RHEL environment
  • Uses proper nodejs setup script and dnf/yum install when in a RHEL environment
  • Changes python manage.py to python3.11 manage.py to be consistent
  • Changes /etc/nginx/sites-available to /etc/nginx/conf.d when in a RHEL environment
  • Fixes the directory permissions of all of the parent directories for /rmm/api/tacticalrmm/tacticalrmm.sock (nginx can't access socket)

Additionally, the contents of /rmm/api/tacticalrmm/tacticalrmm/local_settings.py ($local_settings or $localvars) to include CORS_ALLOW_HEADERS and CORS_ALLOW_METHODS because otherwise Firefox refuses to load anything and breaks.

The biggest change, as earlier, is the use of pyenv.


🔄 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/amidaware/tacticalrmm/pull/2047 **Author:** [@egg82](https://github.com/egg82) **Created:** 10/25/2024 **Status:** 🔄 Open **Base:** `develop` ← **Head:** `rhel-installer` --- ### 📝 Commits (2) - [`b0aa813`](https://github.com/amidaware/tacticalrmm/commit/b0aa813750abc95970929d56f6162ededa4f526b) Update install.sh for RHEL-based systems - [`0d73425`](https://github.com/amidaware/tacticalrmm/commit/0d73425f1256534896d54d41e6b6689e6d451b76) Fix postgres service names ### 📊 Changes **1 file changed** (+260 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `install.sh` (+260 -92) </details> ### 📄 Description Similar to #2046 Changes made: * Uses `/etc/os-release` to determine OS type * Uses `command -v dnf` to determine if `dnf` is available, and falls back to `yum` if not * Uses `yum`/`dnf` in place of `apt` and `apt-get` where applicable * Changes support (unsupported) wording * Changes locale wording when in a RHEL environment * Trades apt keyrings for yum GPG keys where applicable * Slightly changes postgres install and initialization (and service name) for RHEL-based systems * Changes `www-data` for `nginx` user/group where applicable * Installs `pango`, `pango-devel`, `cairo`, `cairo-devel`, and `libffi-devel` from proper sources when in a RHEL environment * Uses `pyenv` to install proper python version when in RHEL environment * Uses proper nodejs setup script and `dnf`/`yum` install when in a RHEL environment * Changes `python manage.py` to `python3.11 manage.py` to be consistent * Changes `/etc/nginx/sites-available` to `/etc/nginx/conf.d` when in a RHEL environment * Fixes the directory permissions of all of the parent directories for `/rmm/api/tacticalrmm/tacticalrmm.sock` (nginx can't access socket) Additionally, the contents of `/rmm/api/tacticalrmm/tacticalrmm/local_settings.py` (`$local_settings` or `$localvars`) to include `CORS_ALLOW_HEADERS` and `CORS_ALLOW_METHODS` because otherwise Firefox refuses to load anything and breaks. The biggest change, as earlier, is the use of `pyenv`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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/tacticalrmm#3844
No description provided.