Update to 2024-04-25 18:01

This commit is contained in:
Daniel Berteaud
2024-04-25 18:01:10 +02:00
parent 641db4ae9d
commit d40e6da998
3 changed files with 14 additions and 3 deletions

View File

@@ -18,8 +18,12 @@
- name: Install babashka binary
copy:
src: /tmp/bb
dest: /usr/local/bin/bb
dest: /usr/local/bin/bb.real
remote_src: True
mode: 755
tags: bb
- name: Install Babashka wrapper for proxy support
template: src=bb.j2 dest=/usr/local/bin/bb mode=755
tags: bb

View File

@@ -0,0 +1,7 @@
#!/bin/sh
exec /usr/local/bin/bb.real \
{% if system_proxy is defined and system_proxy != '' %}
-Dhttp.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttp.proxyPort={{ system_proxy | urlsplit('port') }} -Dhttps.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttps.proxyPort={{ system_proxy | urlsplit('port') }} \
{% endif %}
$@