diff --git a/CHANGELOG.md b/CHANGELOG.md index 194114a4..2246b2a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## Undefined + +### Added + +* Support Arch Linux. + +### Fixed + +* Change sysctl conf file. + ## 2025-07-15 ### Added diff --git a/README.md b/README.md index 310e9147..a7c150ed 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ Decide wether you want to run Odoo in native mode (recommended) or as a containe ### Native -Run Odoo from source. Currently supported OS: Fedora, Ubuntu, Debian, Pop!\_OS, Darwin, Windows with Ubuntu on WSL2. +Run Odoo from source. Currently supported OS: Arch Linux, Darwin, Debian, Fedora, Ubuntu, Pop!\_OS, Windows with Ubuntu on WSL2. #### Initialize and start Odoo from source diff --git a/task b/task index a4c86853..35f493f0 100755 --- a/task +++ b/task @@ -849,7 +849,7 @@ function install() { init-venv activate-venv - if [[ "$OS_RELEASE" =~ ^(Ubuntu|Debian|Pop!_OS|Fedora Linux|Darwin)$ ]]; then + if [[ "$OS_RELEASE" =~ ^(Arch Linux|Darwin|Debian|Fedora Linux|Ubuntu|Pop!_OS)$ ]]; then # Source: https://gist.github.com/faniska/37f896d5e9de5fee925925d7caf3cb9e INSTALLED_VERSION=$(wkhtmltopdf --version 2>&1 | $GREP -Po '^wkhtmltopdf \K[\d.]+') @@ -864,7 +864,7 @@ function install() { fi fi - if [[ "$OS_RELEASE" =~ ^(Ubuntu|Debian|Pop!_OS)$ ]]; then + if [[ "$OS_RELEASE" =~ ^(Debian|Ubuntu|Pop!_OS)$ ]]; then echo -e "\033[38;5;214mApt\033[0m: Update apt repo" sudo apt update @@ -905,6 +905,10 @@ function install() { echo 'LDFLAGS=-L/opt/homebrew/lib/' >> .env fi + elif [[ "$OS_RELEASE" =~ ^(Arch Linux)$ ]]; then + + echo "Arch is the best" + else echo "The operating system $OS_RELEASE is not supported." exit 1 @@ -940,9 +944,9 @@ function install() { git -C odoo checkout requirements.txt fi - if [ "$PYTHON_NOTIFY" == "inotify" ] && ! sudo grep -q "fs.inotify.max_user_watches=524288" /etc/sysctl.conf; then - sudo bash -c 'echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.conf' - sudo sysctl -p /etc/sysctl.conf + if [ "$PYTHON_NOTIFY" == "inotify" ] && ! sudo grep -q "fs.inotify.max_user_watches=524288" /etc/sysctl.d/99-sysctl.conf; then + sudo bash -c 'echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.d/99-sysctl.conf' + sudo sysctl -p /etc/sysctl.d/99-sysctl.conf echo -e "\033[38;5;214mSystem\033[0m: Updated fs.inotify.max_user_watches to 524288" fi }