[IMP] runbot: do not install wkhtml when value is empty

This commit is contained in:
Christophe Monniez 2023-01-11 13:43:05 +01:00 committed by xdo
parent 12c0a0edf6
commit 1a108669ce

View File

@ -45,12 +45,14 @@ RUN curl -sSL https://nightly.odoo.com/resources/phantomjs.tar.bz2 -o /tmp/phan
</template>
<template id="runbot.docker_install_wkhtml">
<t t-if="values['wkhtml_url']">
# Install wkhtml
RUN curl -sSL <t t-esc="values['wkhtml_url']"/> -o /tmp/wkhtml.deb \
&amp;&amp; apt-get update \
&amp;&amp; dpkg --force-depends -i /tmp/wkhtml.deb \
&amp;&amp; apt-get install -y -f --no-install-recommends \
&amp;&amp; rm /tmp/wkhtml.deb
</t>
</template>
<template id="runbot.docker_install_nodejs">