mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 02:35:06 +02:00
Make Certbot find externally snapped plugins (#8054)
* Add snap plugin support Switch to a PoC branch of certbot that supports the new CERTBOT_PLUGIN_PATH and wrap the snap to set this variable correctly based on the content interfaces connected. (cherry picked from commit 7076a55fd82116d068e2aca7239209b7203917d2) * Modify certbot.wrapper to append to PYTHONPATH instead of separate CERTBOT_PLUGIN_PATH variable * Update certbot-wrapper to python3.6 version * add source field * Update changelog * Use bash instead of sh Co-authored-by: Brad Warren <bmw@users.noreply.github.com> * Exit if something goes wrong Co-authored-by: Brad Warren <bmw@users.noreply.github.com> * No leading : when modifying empty PYTHONPATH * Improve bash handling of PYTHONPATH manipulation Co-authored-by: Robie Basak <robie.basak@canonical.com> Co-authored-by: Brad Warren <bmw@eff.org> Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
This commit is contained in:
co-authored by
Brad Warren
Robie Basak
Brad Warren
parent
50fa04ba0c
commit
8d776fb7ac
+6
-2
@@ -7,7 +7,7 @@ description: |
|
||||
browser-trusted certificate, without any human intervention. This is
|
||||
accomplished by running a certificate management agent on the web
|
||||
server.
|
||||
|
||||
|
||||
This agent is used to:
|
||||
- Automatically prove to the Let's Encrypt CA that you control the website
|
||||
- Obtain a browser-trusted certificate and set it up on your web server
|
||||
@@ -20,7 +20,7 @@ adopt-info: certbot
|
||||
|
||||
apps:
|
||||
certbot:
|
||||
command: certbot
|
||||
command: certbot.wrapper
|
||||
environment:
|
||||
PATH: "$SNAP/bin:$SNAP/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
|
||||
AUGEAS_LENS_LIB: "$SNAP/usr/share/augeas/lenses/dist"
|
||||
@@ -85,6 +85,10 @@ parts:
|
||||
# After certbot-apache to not rebuild duplicates (essentially sharing what was already staged,
|
||||
# like zope)
|
||||
after: [certbot-apache]
|
||||
wrappers:
|
||||
plugin: dump
|
||||
source: .
|
||||
stage: [certbot.wrapper]
|
||||
|
||||
plugs:
|
||||
plugin:
|
||||
|
||||
Reference in New Issue
Block a user