Lines 350-356
check_letsencrypt()
Link Here
|
350 |
letsencrypt_instance() |
350 |
letsencrypt_instance() |
351 |
{ |
351 |
{ |
352 |
# Get letsencrypt certificates |
352 |
# Get letsencrypt certificates |
353 |
letsencrypt --agree-tos --renew-by-default --webroot --staging certonly \ |
353 |
letsencrypt --agree-tos --renew-by-default --webroot certonly \ |
354 |
-w /usr/share/koha/opac/htdocs/ -d $opacdomain -w /usr/share/koha/intranet/htdocs/ -d $intradomain |
354 |
-w /usr/share/koha/opac/htdocs/ -d $opacdomain -w /usr/share/koha/intranet/htdocs/ -d $intradomain |
355 |
# enable all ssl settings (apache won't start with these before certs are present) |
355 |
# enable all ssl settings (apache won't start with these before certs are present) |
356 |
sed -i "s:^\s*#\(\s*SSL.*\)$:\1:" "/etc/apache2/sites-available/$name.conf" |
356 |
sed -i "s:^\s*#\(\s*SSL.*\)$:\1:" "/etc/apache2/sites-available/$name.conf" |
357 |
- |
|
|