Created
December 6, 2015 20:37
-
-
Save danaketh/dc8ebb921d9b2720ab1d to your computer and use it in GitHub Desktop.
Simple bash script I've made to make the Let's Encrypt faster to use...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cmd="./letsencrypt-auto certonly --webroot -w" | |
if [ ! -z $1 ] | |
then | |
# CHANGE THIS! | |
source /path/to/configs/$1 | |
cmd="$cmd $webroot" | |
for d in "${domains[@]}" | |
do | |
cmd="$cmd -d $d" | |
done | |
# CHANGE THIS! | |
cd /path/to/letsencrypt | |
sudo $cmd | |
else | |
echo "Config file required!" | |
fi | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webroot="/var/www/example.com" | |
domains[0]="example.com" | |
domains[1]="www.example.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment