File tree Expand file tree Collapse file tree 16 files changed +108
-90
lines changed
defaults/etc/letsencrypt/renewal-hooks Expand file tree Collapse file tree 16 files changed +108
-90
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34echo " <------------------------------------------------->"
45echo
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34cd /config/keys/letsencrypt || exit 1
45openssl pkcs12 -export -out privkey.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -passout pass:
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
4+ # shellcheck source=/dev/null
35. /config/.donoteditthisfile.conf
46
5- if [ ! "$ORIGVALIDATION" = "dns" ] && [ ! "$ORIGVALIDATION" = "duckdns" ]; then
6- if ps aux | grep ' s6-supervise nginx' | grep -v grep >/dev/null; then
7+ if [[ ! "${ ORIGVALIDATION} " = "dns" ]] && [[ ! "${ ORIGVALIDATION} " = "duckdns" ] ]; then
8+ if pgrep -f " s6-supervise nginx" >/dev/null; then
79 s6-svc -u /run/service/nginx
810 fi
911else
10- if ps aux | grep [n]ginx: >/dev/null; then
12+ if pgrep -f "nginx:" >/dev/null; then
1113 s6-svc -h /run/service/nginx
1214 fi
1315fi
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
4+ # shellcheck source=/dev/null
35. /config/.donoteditthisfile.conf
46
5- if [ ! "$ORIGVALIDATION" = "dns" ] && [ ! "$ORIGVALIDATION" = "duckdns" ]; then
6- if ps aux | grep [n]ginx: >/dev/null; then
7+ if [[ ! "${ ORIGVALIDATION} " = "dns" ]] && [[ ! "${ ORIGVALIDATION} " = "duckdns" ] ]; then
8+ if pgrep -f "nginx:" >/dev/null; then
79 s6-svc -d /run/service/nginx
810 fi
911fi
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34# Echo init finish for test runs
45if [[ -n "${TEST_RUN}" ]]; then
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34# check to make sure that the required variables are set
45if [[ -z "${URL}" ]]; then
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34# make our folders and links
45mkdir -p \
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34# samples are removed on init by the nginx base
45
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34# copy/update the fail2ban config defaults to/in /config
45cp -R /defaults/fail2ban/filter.d /config/fail2ban/
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34# copy crontabs if needed
45if [[ ! -f /config/crontabs/root ]]; then
You can’t perform that action at this time.
0 commit comments