View | Details | Raw Unified | Return to bug 15303
Collapse All | Expand All

(-)a/debian/scripts/koha-create (-2 / +4 lines)
Lines 331-338 enable_sru_server() Link Here
331
check_letsencrypt()
331
check_letsencrypt()
332
{
332
{
333
    if [ $(dpkg-query -W -f='${Status}' letsencrypt 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
333
    if [ $(dpkg-query -W -f='${Status}' letsencrypt 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
334
        set +e
334
        apt-cache show letsencrypt &>/dev/null
335
        apt-cache show letsencrypt &>/dev/null
335
        if [ $? -eq 0 ]; then
336
        local aptcacheshow=$?
337
        set -e
338
        if [ $aptcacheshow -eq 0 ]; then
336
                read -r -p "The letsencrypt package is not installed. Do it now?  [y/N] " response
339
                read -r -p "The letsencrypt package is not installed. Do it now?  [y/N] " response
337
                if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
340
                if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
338
                    apt-get install -y letsencrypt
341
                    apt-get install -y letsencrypt
339
- 

Return to bug 15303