Skip to content

Commit

Permalink
error out when we can't simply install epel-release
Browse files Browse the repository at this point in the history
  • Loading branch information
bmw committed Aug 18, 2016
1 parent 5c16b43 commit 156c641
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions letsencrypt-auto-source/letsencrypt-auto
Expand Up @@ -287,6 +287,10 @@ BootstrapRpmCommon() {

if ! $SUDO $tool list *virtualenv >/dev/null 2>&1; then
echo "To use Certbot, packages from the EPEL repository need to be installed."
if ! $SUDO $tool list epel-release >/dev/null 2>&1; then
echo "Please enable this repository and try running Certbot again."
exit 1
fi
if [ "$ASSUME_YES" = 1 ]; then
/bin/echo -n "Enabling the EPEL repository in 3 seconds..."
sleep 1s
Expand Down
4 changes: 4 additions & 0 deletions letsencrypt-auto-source/pieces/bootstrappers/rpm_common.sh
Expand Up @@ -23,6 +23,10 @@ BootstrapRpmCommon() {

if ! $SUDO $tool list *virtualenv >/dev/null 2>&1; then
echo "To use Certbot, packages from the EPEL repository need to be installed."
if ! $SUDO $tool list epel-release >/dev/null 2>&1; then
echo "Please enable this repository and try running Certbot again."
exit 1
fi
if [ "$ASSUME_YES" = 1 ]; then
/bin/echo -n "Enabling the EPEL repository in 3 seconds..."
sleep 1s
Expand Down

0 comments on commit 156c641

Please sign in to comment.