feat(installation): add support for Arch Linux and fix sysctl configuration

This commit is contained in:
Janik von Rotz committed 2025-07-16 16:10:12 +02:00
1 parent eb808572ba
commit a3ecff1bf2
3 files changed
+20 -6

No files matched your search

+10
View File
@@ -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
+1 -1
View File
@@ -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
+9 -5
View File
@@ -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
}