Add script to copy the new certificates to vernemq folder and restart the needed services
This commit is contained in:
parent
19a757f48d
commit
cea8df1a2c
1 changed files with 11 additions and 0 deletions
11
utils/post_cert_renewal/post_cert_renewal.sh
Executable file
11
utils/post_cert_renewal/post_cert_renewal.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# copy the certificates into /etc/vernemq
|
||||||
|
cp -Lp /etc/letsencrypt/live/resqapi.jankstudio.com/*.pem /etc/vernemq
|
||||||
|
|
||||||
|
# change ownership and group of the certificates from root to vernemq
|
||||||
|
chown vernemq:vernemq /etc/vernemq/*.pem
|
||||||
|
|
||||||
|
sudo systemctl restart vernemq.service
|
||||||
|
sudo systemctl restart mqtt_sender.service
|
||||||
|
sudo systemctl restart riderloc.service
|
||||||
|
|
||||||
Loading…
Reference in a new issue