mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Fixes #8103. * Update the DNS plugin generator script to core20 syntax * Generate new snapcraft.yamls for the DNS plugins * Update certbot.wrapper to search for python3.8 paths
20 lines
521 B
Bash
Executable File
20 lines
521 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
join() {
|
|
sep=$1
|
|
first=$2
|
|
if [ "$first" != "" ]; then
|
|
shift 2
|
|
echo -n "${first}"
|
|
for item in "$@"; do echo -n "${sep}${item}"; done
|
|
echo
|
|
fi
|
|
}
|
|
|
|
paths=$(for plugin_snap in $(snap connections certbot|sed -n '2,$p'|awk '$1=="content[certbot-1]"{print $3}'|cut -d: -f1); do echo /snap/$plugin_snap/current/lib/python3.8/site-packages; done)
|
|
export PYTHONPATH=$(join : $PYTHONPATH $paths)
|
|
if [ -z "$PYTHONPATH" ]; then
|
|
unset PYTHONPATH
|
|
fi
|
|
exec certbot "$@"
|