Commit Graph
4200 Commits
Author SHA1 Message Date
Erik Rose be6c34de32 Make --no-self-upgrade public.
This replaces --_skip-to-install and is suitable for people who have audited letsencrypt-auto and wish to run it as is, without upgrading to the latest version.

Also...
* rm temp dirs when done. No longer reuse a single temp dir across phases so the user doesn't have to pass a temp dir with --no-self-upgrade as phase 1 itself used to.
* Swap stanzas in the big "if" so we aren't testing negatives all the time.
* Fix a bug in which we ran peep with $LE_PYTHON rather than the python in the venv.
* Bootstrap only if it looks like we never got to the point of making a venv before.
* Move venv creation into Phase 2. Besides the practical benefit of ensuring there's a venv if a user passes --no-self-upgrade, this has the philosophical advantage of making Phase 1 more minimal, giving us more latitude to change behavior in updates.
2015-12-02 17:56:39 -05:00
Erik Rose 5bae8e0ac1 Install not only LE's dependencies but LE itself. 2015-12-02 17:48:59 -05:00
Erik Rose fc52608b40 Rewrap some comments. 2015-12-02 16:37:42 -05:00
Erik Rose 4a69584a84 Standardize semicolon use. 2015-12-02 16:08:28 -05:00
Erik Rose 346ec588b4 Add visual separators between language changes.
On his first time auditing, pde thought this would help.
2015-12-02 15:00:04 -05:00
Erik Rose a1b26262a2 Print the final letsencrypt invocation before doing it.
People like to know what they're sudo-ing.
2015-12-02 14:53:33 -05:00
Erik Rose 3f0bcb5c9a Add real requirements, suitable as of ab9051ff09 on master. 2015-12-02 14:43:26 -05:00
Erik Rose 9d6cbea5ce Fix some errors.
Use the correct Python interpreter. Fix a syntax error. Fix a missing import.
2015-12-02 11:41:49 -05:00
Erik Rose f9d1de6179 Remove test signature, which I shouldn't have committed. 2015-12-02 11:40:30 -05:00
Erik Rose 66436c5255 le-auto now doesn't trigger sh syntax errors when run. 2015-12-02 11:13:23 -05:00
Erik Rose cdd855c745 Add build script for letsencrypt-auto.
Change template language to reference files, saving me some boilerplate over the dict-based .format() thing I originally had in mind.

Put newlines at the ends of bootstrap scripts. It makes the built le-auto script prettier.
2015-12-02 11:13:23 -05:00
Erik Rose ec9a498622 Move OS-package bootstrappers to a private folder.
They're now used only by the le-auto build process. The new public interface for OS-level bootstrapping is le-auto --os-packages-only, which dispatches by OS automatically. That obsoletes install-deps.sh as well, saving some repetition.

Also, switch to mustache-style templating to avoid colliding with shell variable references.

To optimize for the docker cache, we could later add a shim script that sources just deb_common.sh and calls its bootstrap function.
2015-12-02 11:12:57 -05:00
Erik Rose 4abe7ab93d Merge master in to get up to date. 2015-12-02 00:53:09 -05:00
Erik Rose e3ace6f84c Split large independent scripts off from the main body of the proof-of-concept script. Integrate the bits of the old le-auto script that are still useful.
This makes the script more readable and easier to work on. We'll stitch it together with a build process.

Also, stop passing the sudo command as an arg to the experimental bootstrappers. They will be inlined into the main script and can just reference $SUDO. As a result, stop recommending devs run the scripts manually, instead running le-auto --os-packages-only. This has the nice side effect of making dev documentation simpler.

Name the folder "letsencrypt_auto" rather than "letsencrypt-auto" because git yield endless pain when replacing a file with a dir. Perhaps we can change it with impunity in a latter commit.
2015-12-02 00:48:18 -05:00
Peter Eckersley 8168bfe70d Merge pull request #1656 from letsencrypt/update-release-sigs
Update release sigs
2015-12-01 19:38:49 -08:00
Peter Eckersley 2b2d910cd0 Merge pull request #1654 from letsencrypt/webroot
Webroot
2015-12-01 19:29:26 -08:00
Brad Warren 77dd30614a Use airgapped key 2015-12-01 19:28:42 -08:00
Brad Warren a65641eb85 Use GPG_TTY 2015-12-01 19:26:55 -08:00
Peter Eckersley 02d93e995a lint 2015-12-01 19:24:14 -08:00
bmw a02898749a Merge pull request #1633 from letsencrypt/error-verbosity
Reduce verbosity of error tracebacks
2015-12-01 19:20:48 -08:00
Peter Eckersley a191daf3ee Merge pull request #1597 from lbeltrame/fix-webroot-permissions
Fix webroot permissions [mergeable, but enhancements also requested]
2015-12-01 19:07:06 -08:00
Peter Eckersley 50e0815fb3 Merge pull request #1653 from letsencrypt/ancient-python
Make the ancient python error more friendly
2015-12-01 18:38:47 -08:00
bmw 8e71046986 Merge pull request #1594 from letsencrypt/webroot
Support multiple webroot paths
2015-12-01 18:32:01 -08:00
Peter Eckersley cf807eaf60 Make the ancient python error more friendly 2015-12-01 18:22:05 -08:00
Peter Eckersley 549dc2c2f5 Merge pull request #1652 from letsencrypt/readme
Readme.rst updates
2015-12-01 18:18:57 -08:00
Peter Eckersley 6a46eff84e Merge pull request #1519 from Aeyoun/patch-1
Test dnf before yum
2015-12-01 18:15:26 -08:00
Peter Eckersley 1a4dd56f71 Address review comments
(sometimes less less is more)
2015-12-01 18:13:38 -08:00
bmw c760d84ccb Merge pull request #1582 from SwartzCr/vhost
prevent files from being left in apache sites-available issue 808
2015-12-01 18:10:19 -08:00
Peter Eckersley e27e891615 nginx detail 2015-12-01 17:50:46 -08:00
Peter Eckersley 49efc489fc fixes 2015-12-01 17:49:49 -08:00
Peter Eckersley f15c4125d3 More-or-less-final README.rst 2015-12-01 17:39:33 -08:00
Peter Eckersley f4dd660403 Oops!
- Finish a partial commit, providing what are perhaps excessively detailed and
  mystical errors in improbable cases.
2015-12-01 16:50:39 -08:00
Peter Eckersley 06e273413b Fix nits and address review comments 2015-12-01 16:33:35 -08:00
Noah Swartz ec28094ae2 added test for new temp elif 2015-12-01 16:28:15 -08:00
Peter Eckersley a7377fc485 Merge pull request #1527 from Aeyoun/patch-3
Add missing RPM requirement
2015-12-01 16:12:31 -08:00
Peter Eckersley 0561376d12 Merge pull request #1639 from letsencrypt/no-init-scripts
Don't use Apache init scripts
2015-12-01 15:35:52 -08:00
Peter Eckersley 0b7552ef8b Begin cleaning up README.md 2015-12-01 15:16:17 -08:00
Brad Warren d4d51fe435 Remove stray reference to init-script 2015-12-01 13:17:19 -08:00
Noah Swartz ab32e2fd26 fix docstring 2015-12-01 10:46:13 -08:00
Noah Swartz ee7e3d92d9 merge from master 2015-12-01 10:44:01 -08:00
Noah Swartz e846b157ed removed space 2015-12-01 09:59:45 -08:00
Noah Swartz 739fd6614b moved temp check 2015-12-01 09:50:13 -08:00
Erik Rose fe77da2f7f Unquote heredoc terminators.
Quoting them causes them to not be recognized sometimes. (Perhaps it's when they're not within backticks?)
2015-12-01 11:37:21 -05:00
Erik Rose 86203c85df Add peep and sample requirements file.
We cat it to a file rather than just calling it in place because otherwise the "-" arg would have to be stripped off by editing the script.
2015-12-01 11:35:51 -05:00
Erik Rose 2c36f595b3 Return a temp dir, not the file within.
This lets us reuse the dir for other things and makes it easy to rm afterward.
2015-12-01 11:32:27 -05:00
Peter Eckersley 2befb2d5c1 remove python2.7ism 2015-11-30 21:27:41 -08:00
Peter Eckersley 494c09d70e Merge pull request #1642 from letsencrypt/configs
Added simple confs and compatibility-test tarball
2015-11-30 21:18:47 -08:00
Brad Warren 1e3cca8e5c Added simple confs and compatibility-test tarball 2015-11-30 21:09:40 -08:00
Peter Eckersley 6b122a044a Too many lines?
(That's probably true)
2015-11-30 21:08:23 -08:00
bmw 11a056f3c6 Merge pull request #1641 from letsencrypt/apache-conf-library
Start a library of apache2 conf files for tests
2015-11-30 21:04:29 -08:00