On Mon, Mar 25, 2019 at 12:40:23AM -0000, Stuart Henderson wrote: > On 2019-03-23, Mischa <obs...@high5.nl> wrote: > > Hi Geir, > > > > I have solved this with a little script. > > > > ### > > #!/bin/sh > > OUT=2 > > /usr/sbin/acme-client -v www.example.com > > if test $? -eq 0 > > then EXT=$? > > fi > > /usr/sbin/acme-client -v www.example1.com > > if test $? -eq 0 > > then EXT=$? > > fi > > if test $EXT -eq 0 > > then > > echo "New certificates installed." > > rcctl restart httpd > > else echo "No new certificates installed." > > fi > > ### > > Simpler: > > for i in www.example.com www.example1.com; do > acme-client -v $i && reload=y > done > [[ -n $reload ]] && rcctl reload httpd > >
Thanks a lot. /Geir