On Sat, Mar 23, 2019 at 07:05:53PM +0100, Mischa 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
> ###
> 
> Added the following to cron:
> @daily  sleep $((RANDOM \% 2048)) && /home/mischa/bin/lets.sh
> 
> Hope this helps.
> 
> Mischa
> 
> 
> On 23 Mar at 16:39, Geir Svalland <thorshamm...@outlook.com> wrote:
> > Hello
> > mtp$ uname -a
> > OpenBSD smtp.thorshammare.org 6.4 GENERIC.MP#8 amd64
> > 
> > I'm hosting and serving multiple domains, 5 of them, using httpd.
> > The domains are declared in /etc/acme-client.conf, and in my initial
> > setup I used the command "acme-client -vAD example.com" on every domain 
> > to create
> > the certs. All of this is working great, but my question is regarding 
> > updating.
> > 
> > I intend to use a cron job for this, "acme-client example.com && rcctl 
> > reload httpd"
> > but I'm not able to get this working for all of the domains in one 
> > single command.
> > 
> > Is that possible to do ?
> > Or do I have to use 5 differen lines with one domain name on each?
> > 
> > All the best
> > Geir Svalland
> > 
> 

Thank you very much Mischa.
Yes, this will do it for me. Very nice.

Have a nice weekend.

/Geir 

Reply via email to