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