Skip to content

[BUG] default letsencrypt pre-hook prevents http-01 webroot renewals #598

@bbbkada

Description

@bbbkada

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

root@2c4728d768bc:/config/etc/letsencrypt/renewal-hooks/pre# cat 10-nginx
#!/usr/bin/with-contenv bash

shellcheck shell=bash

shellcheck source=/dev/null

. /config/.donoteditthisfile.conf

if [[ ! "${ORIGVALIDATION}" = "dns" ]] && [[ ! "${ORIGVALIDATION}" = "duckdns" ]]; then
if pgrep -f "nginx:" >/dev/null; then
s6-svc -d /run/service/svc-nginx
fi
fi

Will shut down nginx when needed the most, letsencrypt http-01 validation requests gets resetted and fail !

Expected Behavior

NA

Steps To Reproduce

Install swag on Unraid

Environment

- OS: UNRAID
- How docker service was installed:
Community download

CPU architecture

x86-64

Docker creation

NA

Container logs

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions