mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
Define scripts
This commit is contained in:
parent
d434b92945
commit
ed7915c1dd
2 changed files with 46 additions and 0 deletions
28
tools/snap/build_dns_remote.sh
Executable file
28
tools/snap/build_dns_remote.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
DNS_PLUGINS=$1
|
||||
SNAP_ARCHS=$2
|
||||
|
||||
if [[ -z "${DNS_PLUGINS}" ]]; then
|
||||
echo "You need to specify the DNS plugins"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z "${SNAP_ARCHS}" ]]; then
|
||||
echo "You need to specify at least one target architecture"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
CERTBOT_DIR="$(dirname "$(dirname "${DIR}")")"
|
||||
|
||||
trap popd EXIT
|
||||
|
||||
IFS=","
|
||||
for DNS_PLUGIN in ${DNS_PLUGINS}; do
|
||||
pushd "${CERTBOT_DIR}/${DNS_PLUGIN}"
|
||||
python3 ../tools/strip_hashes.py ../letsencrypt-auto-source/pieces/dependency-requirements.txt | grep -v python-augeas > snap-constraints.txt
|
||||
snapcraft remote-build --launchpad-accept-public-upload --build-on="${SNAP_ARCHS}"
|
||||
popd
|
||||
done
|
||||
18
tools/snap/build_remote.sh
Executable file
18
tools/snap/build_remote.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
SNAP_ARCHS=$1
|
||||
|
||||
if [[ -z "${SNAP_ARCHS}" ]]; then
|
||||
echo "You need to specify at least one target architecture"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
CERTBOT_DIR="$(dirname "$(dirname "${DIR}")")"
|
||||
|
||||
trap popd EXIT
|
||||
|
||||
pushd "${CERTBOT_DIR}"
|
||||
snapcraft remote-build --launchpad-accept-public-upload --build-on="${SNAP_ARCHS}"
|
||||
popd
|
||||
Loading…
Reference in a new issue