diff options
Diffstat (limited to 'hosts/erp1')
-rw-r--r-- | hosts/erp1 | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" |