summaryrefslogtreecommitdiffstats
path: root/hosts/erp1
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/erp1')
-rw-r--r--hosts/erp18
1 files changed, 6 insertions, 2 deletions
diff --git a/hosts/erp1 b/hosts/erp1
index aedb682..59cbced 100644
--- a/hosts/erp1
+++ b/hosts/erp1
@@ -91,7 +91,9 @@ do_postinst()
wget -O - https://apt.ledgersmb.org/apt-ledgersmb-org_public-key.asc | \
in_target apt-key add - || return 1
in_target apt-get update || return 1
- in_target apt-get -q -y install ledgersmb || return 1
+ i=0; while [ ${i} -lt 3 ]; do i=$((${i} + 1))
+ in_target apt-get -q -y install ledgersmb && break
+ done || return 1
# Install Odoo.
info 'Installing Odoo'
@@ -102,7 +104,9 @@ do_postinst()
wget -O - https://nightly.odoo.com/odoo.key | \
in_target apt-key add - || return 1
in_target apt-get update || return 1
- in_target apt-get -q -y install odoo || return 1
+ i=0; while [ ${i} -lt 3 ]; do i=$((${i} + 1))
+ in_target apt-get -q -y install odoo && break
+ done || return 1
# Enable services.
rm -f "${target}/usr/sbin/policy-rc.d"