mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
symlink test scriptls
This commit is contained in:
parent
e5f2f14f3d
commit
bd626da130
1 changed files with 35 additions and 0 deletions
35
tests/letstest/scripts/test_leauto_upgrades_tmp.sh
Executable file
35
tests/letstest/scripts/test_leauto_upgrades_tmp.sh
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash -xe
|
||||
|
||||
# $OS_TYPE $PUBLIC_IP $PRIVATE_IP $PUBLIC_HOSTNAME $BOULDER_URL
|
||||
# are dynamically set at execution
|
||||
|
||||
cd letsencrypt
|
||||
|
||||
if ! command -v git ; then
|
||||
if [ "$OS_TYPE" = "ubuntu" ] ; then
|
||||
sudo apt-get update
|
||||
fi
|
||||
if ! ( sudo apt-get install -y git || sudo yum install -y git-all || sudo yum install -y git || sudo dnf install -y git ) ; then
|
||||
echo git installation failed!
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
||||
# 0.4.1 is the oldest version of letsencrypt-auto that can be used because
|
||||
# it's the first version that both pins package versions and properly supports
|
||||
# --no-self-upgrade.
|
||||
git checkout -f v0.4.1
|
||||
if ! ./letsencrypt-auto -v --debug --version --no-self-upgrade 2>&1 | grep 0.4.1 ; then
|
||||
echo initial installation appeared to fail
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git checkout -f "$BRANCH"
|
||||
letsencrypt-auto-source/letsencrypt-auto -v --debug --version --no-self-upgrade
|
||||
|
||||
if [ "$(tools/readlink.py ~/.local/share/letsencrypt)" != "/opt/eff.org/certbot/venv" ]; then
|
||||
echo symlink from old venv path not properly created!
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo upgrade appeared to be successful
|
||||
Loading…
Reference in a new issue