Add 'le.sh'
LetsEncrypt copy renew
This commit is contained in:
parent
06c1c20514
commit
283a06ca01
16
le.sh
Normal file
16
le.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIR1="im.cyberjinh.fr"
|
||||||
|
LE_DIR="/etc/letsencrypt/live/"
|
||||||
|
CERTS="/etc/prosody/certs/"
|
||||||
|
PROSODY="/etc/prosody/"
|
||||||
|
|
||||||
|
cp -rfL "${LE_DIR}${DIR1}/" "${CERTS}"
|
||||||
|
|
||||||
|
sudo chown -R prosody:prosody "${PROSODY}"
|
||||||
|
sudo chmod -R 700 "${CERTS}"
|
||||||
|
sudo service prosody restart
|
||||||
|
|
||||||
|
echo "OK"
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user