forked from bluecherrydvr/bluecherry-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pip-installed certbot if available
See bluecherrydvr#635 Give pip-installed one a priority as it's more likely to be up to date, which is useful long-term as LetsEncrypt matters sometimes change on short notice.
- Loading branch information
1 parent
e2bc876
commit 4c37d1e
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# Suppress the output of the rest of the script. | ||
# To debug, redirect to a real file. | ||
exec &> /dev/null | ||
|
||
CERTBOT=/root/.local/bin/certbot | ||
if ! [[ -x "$CERTBOT" ]]; then | ||
CERTBOT=certbot | ||
fi | ||
|
||
"$CERTBOT" renew --config-dir=/usr/share/bluecherry/nginx-includes/letsencrypt/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters