Files
scripts/restart_web.sh
2019-03-26 14:56:47 +00:00

11 lines
444 B
Bash

#!/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