Add 'le.sh'

LetsEncrypt copy renew
This commit is contained in:
Anael G 2018-10-11 21:29:53 +02:00
parent 06c1c20514
commit 283a06ca01

16
le.sh Normal file
View 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