Skip to content

Commit 23ed5b0

Browse files
authored
Update CLI_icecast_cert_from_certbot.sh
1 parent 6e5ea61 commit 23ed5b0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CLI_icecast_cert_from_certbot.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ GREEN='\033[0;32m'
44
YELLOW='\033[1;33m'
55
NC='\033[0m' # No Color
66

7-
OUTPUT=/folder/icecast.pem
7+
DOMAIN=mydomain.com
8+
OUTPUT=icecast.pem
89

9-
echo -e "${YELLOW}Getting Cert and PrivKey from certbot${NC}"
10+
echo -e "${YELLOW}Getting Cert and PrivKey from ${DOMAIN}${NC}"
1011
echo ""
1112

12-
CERT=/etc/letsencrypt/live/<domain>/cert.pem
13+
CERT=/etc/letsencrypt/live/$DOMAIN/cert.pem
1314
if test -f "$CERT";
1415
then
1516
echo -e "${GREEN}$CERT exist !${NC}"
@@ -19,7 +20,7 @@ else
1920
exit
2021
fi
2122

22-
PRIVKEY=/etc/letsencrypt/live/<domain>/privkey.pem
23+
PRIVKEY=/etc/letsencrypt/live/$DOMAIN/privkey.pem
2324
if test -f "$PRIVKEY";
2425
then
2526
echo -e "${GREEN}$PRIVKEY exist !${NC}"

0 commit comments

Comments
 (0)