1 |
diff -Nur smeserver-letsencrypt-0.4.old/root/etc/e-smith/templates/etc/dehydrated/config/20ACCEPT_TERMS smeserver-letsencrypt-0.4/root/etc/e-smith/templates/etc/dehydrated/config/20ACCEPT_TERMS |
2 |
--- smeserver-letsencrypt-0.4.old/root/etc/e-smith/templates/etc/dehydrated/config/20ACCEPT_TERMS 1969-12-31 19:00:00.000000000 -0500 |
3 |
+++ smeserver-letsencrypt-0.4/root/etc/e-smith/templates/etc/dehydrated/config/20ACCEPT_TERMS 2017-04-28 11:41:36.494000000 -0400 |
4 |
@@ -0,0 +1,11 @@ |
5 |
+{ |
6 |
+ use strict; |
7 |
+ use warnings; |
8 |
+ use esmith::ConfigDB; |
9 |
+ |
10 |
+ my $configDB = esmith::ConfigDB->open_ro or die("can't open Config DB"); |
11 |
+ my $ACCEPT_TERMS = $configDB->get_prop( 'letsencrypt', 'ACCEPT_TERMS' ) |
12 |
+ || 'no'; |
13 |
+ $OUT .= "PARAM_ACCEPT_TERMS=\"yes\"\n" if $ACCEPT_TERMS eq 'yes'; |
14 |
+ $OUT .= "# letsencryp property ACCEPT_TERMS not set to yes\n" unless $ACCEPT_TERMS eq 'yes'; |
15 |
+} |