Fix acme.sh haproxy hot update under dash
This commit is contained in:
1 parent
eda351afb9
commit
8bfad85504
1 file changed
+11
@@ -10,6 +10,17 @@
|
||||
- socat
|
||||
become: true
|
||||
|
||||
# acme.sh 3.1.1 (Debian 13 package) sends "set ssl cert" with `echo -e`,
|
||||
# which dash (/bin/sh) does not support: haproxy receives "-e set ssl cert"
|
||||
# and the hot update fails. Apply the upstream fix (printf '%b\n').
|
||||
# No-op once the packaged hook is fixed.
|
||||
- name: Fix acme.sh haproxy deploy hook hot update under dash
|
||||
ansible.builtin.replace:
|
||||
path: /usr/share/acme.sh/deploy/haproxy.sh
|
||||
regexp: 'echo -e ''(\$\{_cmdpfx\}set ssl cert )'
|
||||
replace: 'printf ''%b\\n'' ''\1'
|
||||
become: true
|
||||
|
||||
# Always run: also covers instances where acme.sh is already installed
|
||||
- name: Ensure to install cronjob
|
||||
ansible.builtin.command:
|
||||
|
||||
Reference in new issue
Block a user