Add 'restart_web.sh'

This commit is contained in:
2019-03-26 14:56:47 +00:00
parent 4bf75160d1
commit 802f46b240

10
restart_web.sh Normal file
View File

@@ -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