perhaps only directories can be shared via the contente interface

This commit is contained in:
Erica Portnoy 2020-07-13 18:37:52 -07:00
parent 79cdd47bf2
commit 429bf84746
4 changed files with 11 additions and 6 deletions

0
certbot-dns-dnsimple/run-bash Normal file → Executable file
View file

View file

@ -7,8 +7,8 @@ if [ -z "$first_install" ]; then
exit 0
fi
echo "ls $SNAP/certbot-exec:"
ls $SNAP/certbot-exec
cb_installed=$(grep -oP "__requires__ = 'certbot==\K.*(?=')" $SNAP/certbot-exec)
echo "ls $SNAP/certbot-shared:"
ls $SNAP/certbot-shared
cb_installed=$(grep -oP "__requires__ = 'certbot==\K.*(?=')" $SNAP/certbot-shared)
echo "cb_installed: $cb_installed"
snapctl set cb-installed="$cb_installed"

View file

@ -47,7 +47,7 @@ plugs:
certbot-version:
interface: content
content: version-1
target: $SNAP/certbot-exec
target: $SNAP/certbot-shared
hooks:
post-refresh:

View file

@ -79,11 +79,16 @@ 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-version:
plugin: dump
source: .
stage: [certbot-version/__init__.py]
organize:
$SNAPCRAFT_PART_SRC/certbot/certbot/__init__.py: certbot-version/__init__.py
plugs:
plugin:
@ -95,4 +100,4 @@ slots:
certbot-version:
interface: content
content: version-1
read: [$SNAP/bin/certbot]
read: [$SNAP/certbot-version]