12 lines
458 B
Bash
12 lines
458 B
Bash
#!/bin/bash
|
|
|
|
#Start container
|
|
docker run -it --rm --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" -p 80:80 -p 443:443 certbot/certbot certonly
|
|
|
|
#Copy files
|
|
cp /etc/letsencrypt/live/crusadetracker.nerdfortress.dev/fullchain.pem /opt/crusadetracker
|
|
cp /etc/letsencrypt/live/crusadetracker.nerdfortress.dev/privkey.pem /opt/crusadetracker
|
|
|
|
#Chown
|
|
chown vesem. /opt/crusadetracker/{fullchain.pem,privkey.pem}
|