diff --git a/DISCLAIMER b/DISCLAIMER new file mode 120000 index 000000000..e580554ff --- /dev/null +++ b/DISCLAIMER @@ -0,0 +1 @@ +letsencrypt/DISCLAIMER \ No newline at end of file diff --git a/Dockerfile-dev b/Dockerfile-dev index 2fe1a818d..daa8e9af0 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -32,7 +32,7 @@ RUN /opt/letsencrypt/src/ubuntu.sh && \ # the above is not likely to change, so by putting it further up the # Dockerfile we make sure we cache as much as possible -COPY setup.py README.rst CHANGES.rst MANIFEST.in requirements.txt EULA linter_plugin.py tox.cover.sh tox.ini pep8.travis.sh .pep8 .pylintrc /opt/letsencrypt/src/ +COPY setup.py README.rst CHANGES.rst MANIFEST.in requirements.txt DISCLAIMER linter_plugin.py tox.cover.sh tox.ini pep8.travis.sh .pep8 .pylintrc /opt/letsencrypt/src/ # all above files are necessary for setup.py, however, package source # code directory has to be copied separately to a subdirectory... diff --git a/EULA b/EULA deleted file mode 120000 index 4a6da286e..000000000 --- a/EULA +++ /dev/null @@ -1 +0,0 @@ -letsencrypt/EULA \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in index e421e0cd7..dfec1c3c9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,6 +4,6 @@ include CHANGES.rst include CONTRIBUTING.md include LICENSE.txt include linter_plugin.py -include letsencrypt/EULA +include letsencrypt/DISCLAIMER recursive-include docs * recursive-include letsencrypt/tests/testdata * diff --git a/examples/dev-cli.ini b/examples/dev-cli.ini index 085d4bfcc..2ea5d247d 100644 --- a/examples/dev-cli.ini +++ b/examples/dev-cli.ini @@ -8,7 +8,7 @@ email = foo@example.com domains = example.com text = True -agree-eula = True +agree-dev-preview = True agree-tos = True debug = True # Unfortunately, it's not possible to specify "verbose" multiple times diff --git a/letsencrypt/EULA b/letsencrypt/DISCLAIMER similarity index 100% rename from letsencrypt/EULA rename to letsencrypt/DISCLAIMER diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index 280ddc751..9090839a6 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -763,8 +763,8 @@ def create_parser(plugins, args): help="Select renewal by default when domains are a superset of a " "a previously attained cert") helpful.add( - "automation", "--agree-eula", dest="eula", action="store_true", - help="Agree to the Let's Encrypt Developer Preview EULA") + "automation", "--agree-dev-preview", action="store_true", + help="Agree to the Let's Encrypt Developer Preview Disclaimer") helpful.add( "automation", "--agree-tos", dest="tos", action="store_true", help="Agree to the Let's Encrypt Subscriber Agreement") @@ -1060,11 +1060,11 @@ def main(cli_args=sys.argv[1:]): zope.component.provideUtility(report) atexit.register(report.atexit_print_messages) - # TODO: remove developer EULA prompt for the launch - if not config.eula: - eula = pkg_resources.resource_string("letsencrypt", "EULA") + # TODO: remove developer preview prompt for the launch + if not config.agree_dev_preview: + disclaimer = pkg_resources.resource_string("letsencrypt", "DISCLAIMER") if not zope.component.getUtility(interfaces.IDisplay).yesno( - eula, "Agree", "Cancel"): + disclaimer, "Agree", "Cancel"): raise Error("Must agree to TOS") if not os.geteuid() == 0: diff --git a/letsencrypt/tests/cli_test.py b/letsencrypt/tests/cli_test.py index 4522ccbf4..9d9164f24 100644 --- a/letsencrypt/tests/cli_test.py +++ b/letsencrypt/tests/cli_test.py @@ -38,7 +38,7 @@ class CLITest(unittest.TestCase): from letsencrypt import cli args = ['--text', '--config-dir', self.config_dir, '--work-dir', self.work_dir, '--logs-dir', self.logs_dir, - '--agree-eula'] + args + '--agree-dev-preview'] + args with mock.patch('letsencrypt.cli.sys.stdout') as stdout: with mock.patch('letsencrypt.cli.sys.stderr') as stderr: with mock.patch('letsencrypt.cli.client') as client: @@ -53,7 +53,7 @@ class CLITest(unittest.TestCase): from letsencrypt import cli args = ['--text', '--config-dir', self.config_dir, '--work-dir', self.work_dir, '--logs-dir', self.logs_dir, - '--agree-eula'] + args + '--agree-dev-preview'] + args with mock.patch('letsencrypt.cli.sys.stderr') as stderr: with mock.patch('letsencrypt.cli.client') as client: ret = cli.main(args) @@ -96,7 +96,8 @@ class CLITest(unittest.TestCase): def test_configurator_selection(self): real_plugins = disco.PluginsRegistry.find_all() - args = ['--agree-eula', '--apache', '--authenticator', 'standalone'] + args = ['--agree-dev-preview', '--apache', + '--authenticator', 'standalone'] # This needed two calls to find_all(), which we're avoiding for now # because of possible side effects: diff --git a/tests/integration/_common.sh b/tests/integration/_common.sh index ab645f6d6..1dffaa4e3 100755 --- a/tests/integration/_common.sh +++ b/tests/integration/_common.sh @@ -20,7 +20,7 @@ letsencrypt_test () { --manual-test-mode \ $store_flags \ --text \ - --agree-eula \ + --agree-dev-preview \ --agree-tos \ --email "" \ --renew-by-default \