From 802f46b24097d2d2d618ab5ab5784936d9646bc7 Mon Sep 17 00:00:00 2001 From: alexander Date: Tue, 26 Mar 2019 14:56:47 +0000 Subject: [PATCH] Add 'restart_web.sh' --- restart_web.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 restart_web.sh diff --git a/restart_web.sh b/restart_web.sh new file mode 100644 index 0000000..c9bdf0a --- /dev/null +++ b/restart_web.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# This script assembles the public and private keys into a single file and +# restarts lightttpd on an edgerouter to use as https certificate for the web gui +# automatically run by acme.sh after a certificate has been renewed + +cat /config/acme/certs/work/cert.pem /config/acme/certs/work/key.pem > /config/acme/certs/er_cert.pem + +sudo kill -SIGINT $(cat /var/run/lighttpd.pid) +sudo /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf