Add 'restart_web.sh'
This commit is contained in:
10
restart_web.sh
Normal file
10
restart_web.sh
Normal 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
|
||||||
Reference in New Issue
Block a user