Re: Rewriting a shell script

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Mon, 30 Nov 2015 09:17:37 +0100

  And of course, one second after hitting "Send", I find a
mistake. Poster's curse.


#!/usr/bin/execlineb -P
with-contenv
backtick -n BIND
{
    pipeline { import -u HOSTNAME getent hosts ${HOSTNAME} }
    cut -f1 -d" "
}
s6-setuidgid consul
import -u BIND # forgot this one (backtick doesn't substitute anymore)
consul agent
     -config-dir /etc/consul.d/bootstrap
     -bind ${BIND}
-----

-- 
  Laurent
Received on Mon Nov 30 2015 - 08:17:37 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC