[FIX] script todo: install curl/git/make before ERPLibre make targets
Minimal cloud images ship without make (and often without curl), so the ERPLibre install cloned the repo then died on "make: command not found". The remote bootstrap now installs curl, git and make via apt (Debian/ Ubuntu) or dnf/yum (Fedora) — running apt-get update first since cloud-init did not refresh the lists — before cloning and running make install_os / make install_odoo_18. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0aa84ed1e3
commit
83f71561f8
1 changed files with 14 additions and 3 deletions
|
|
@ -1648,9 +1648,20 @@ class TODO:
|
|||
)
|
||||
return
|
||||
remote = (
|
||||
"set -e; mkdir -p ~/git; "
|
||||
"command -v git >/dev/null 2>&1 || "
|
||||
"{ sudo apt-get install -y git || sudo dnf install -y git; }; "
|
||||
"set -e; "
|
||||
# Outils d'amorçage (absents des images cloud minimales) :
|
||||
# curl, git, make. Supporte apt (Debian/Ubuntu) et dnf/yum
|
||||
# (Fedora). apt-get update car cloud-init n'a pas rafraîchi apt.
|
||||
"PKGS='curl git make'; "
|
||||
"if command -v apt-get >/dev/null 2>&1; then "
|
||||
"sudo apt-get update -qq && sudo apt-get install -y $PKGS; "
|
||||
"elif command -v dnf >/dev/null 2>&1; then "
|
||||
"sudo dnf install -y $PKGS; "
|
||||
"elif command -v yum >/dev/null 2>&1; then "
|
||||
"sudo yum install -y $PKGS; "
|
||||
"else echo 'Aucun gestionnaire de paquets (apt/dnf/yum)'; "
|
||||
"exit 1; fi; "
|
||||
"mkdir -p ~/git; "
|
||||
"if [ ! -d ~/git/erplibre/.git ]; then "
|
||||
f"git clone --branch {shlex.quote(branch)} "
|
||||
f"{self.ERPLIBRE_GIT_URL} ~/git/erplibre; fi; "
|
||||
|
|
|
|||
Loading…
Reference in a new issue