Lines 338-344
check_letsencrypt()
Link Here
|
338 |
if [ $aptcacheshow -eq 0 ]; then |
338 |
if [ $aptcacheshow -eq 0 ]; then |
339 |
read -r -p "The letsencrypt package is not installed. Do it now? [y/N] " response |
339 |
read -r -p "The letsencrypt package is not installed. Do it now? [y/N] " response |
340 |
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then |
340 |
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then |
341 |
apt-get install -y letsencrypt |
341 |
local debrelease="$(lsb_release -c -s)" |
|
|
342 |
if [ $debrelease = "jessie" ]; then |
343 |
apt-get install -y -t jessie-backports letsencrypt |
344 |
else |
345 |
apt-get install -y letsencrypt |
346 |
fi |
342 |
else |
347 |
else |
343 |
die "You have to install letsencrypt to use the --letsencrypt parameter." |
348 |
die "You have to install letsencrypt to use the --letsencrypt parameter." |
344 |
fi |
349 |
fi |
345 |
- |
|
|