Keep the wrapper ...

This commit is contained in:
Adrien Ferrand 2020-09-22 00:35:41 +02:00
parent 9a92e5ec3f
commit 0b7c361e03
2 changed files with 8 additions and 2 deletions

2
certbot.wrapper Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec certbot "$@"

View file

@ -20,13 +20,13 @@ adopt-info: certbot
apps:
certbot:
command: bin/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"
CERTBOT_SNAPPED: "True"
renew:
command: bin/certbot -q renew
command: certbot.wrapper -q renew
daemon: oneshot
environment:
PATH: "$SNAP/bin:$SNAP/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
@ -81,6 +81,10 @@ parts:
cd $SNAPCRAFT_PART_SRC
python3 tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt | grep -v python-augeas > snap-constraints.txt
snapcraftctl set-version `git describe|sed s/^v//`
wrappers:
plugin: dump
source: .
stage: [certbot.wrapper]
shared-metadata:
plugin: dump
source: .