From 084ff74b7cffd352ed0f484b1f95eee45e4ff59d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Apr 2016 09:03:00 +0100 Subject: [PATCH] Bug 15303: Test if the symlink to letsencrypt-auto exists Signed-off-by: Jonathan Druart --- debian/scripts/koha-create | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 8525143..3ae762a 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -344,9 +344,13 @@ check_letsencrypt() fi else echo "No installation candidate available for package letsencrypt." - read -r -p "If you have a symlink from /usr/bin/letsencrypt to letsencrypt-auto, it should work. [y/N] " response - if [[ ! $response =~ ^([yY][eE][sS]|[yY])$ ]]; then - die "You have to install letsencrypt to use the --letsencrypt parameter." + if [[ -f /usr/bin/letsencrypt ]]; then + read -r -p "If you have a symlink from /usr/bin/letsencrypt to letsencrypt-auto, it should work. [y/N] " response + if [[ ! $response =~ ^([yY][eE][sS]|[yY])$ ]]; then + die "You have to install letsencrypt to use the --letsencrypt parameter." + fi + else + die "You can create a symlink from /usr/bin/letsencrypt to letsencrypt-auto." fi fi fi -- 2.7.0