Browse Source

evoacme: remove shellcheck warnings

lpoujol/better-multiphp
4 changed files with 10 additions and 0 deletions
  1. +2
    -0
      evoacme/files/hooks/reload_apache
  2. +3
    -0
      evoacme/files/hooks/reload_dovecot
  3. +2
    -0
      evoacme/files/hooks/reload_nginx
  4. +3
    -0
      evoacme/files/hooks/reload_postfix

+ 2
- 0
evoacme/files/hooks/reload_apache View File

@@ -1,6 +1,7 @@
#!/bin/sh

readonly PROGNAME=$(basename "$0")
# shellcheck disable=SC2124,SC2034
readonly ARGS=$@

readonly VERBOSE=${VERBOSE:-"0"}
@@ -17,6 +18,7 @@ debug() {
}

if [ -n "$(pidof apache2)" ]; then
# shellcheck disable=SC2091
if $($(command -v apache2ctl) -t 2> /dev/null); then
debug "Apache detected... reloading"
service apache2 reload


+ 3
- 0
evoacme/files/hooks/reload_dovecot View File

@@ -1,6 +1,7 @@
#!/bin/sh

readonly PROGNAME=$(basename "$0")
# shellcheck disable=SC2124,SC2034
readonly ARGS=$@

readonly VERBOSE=${VERBOSE:-"0"}
@@ -17,7 +18,9 @@ debug() {
}

if [ -n "$(pidof dovecot)" ]; then
# shellcheck disable=SC2091
if $($(command -v doveconf) > /dev/null); then
# shellcheck disable=SC2091
if $($(command -v doveconf)|grep -E "^ssl_cert[^_]"|grep -q "letsencrypt"); then
debug "Dovecot detected... reloading"
service dovecot reload


+ 2
- 0
evoacme/files/hooks/reload_nginx View File

@@ -1,6 +1,7 @@
#!/bin/sh

readonly PROGNAME=$(basename "$0")
# shellcheck disable=SC2124,SC2034
readonly ARGS=$@

readonly VERBOSE=${VERBOSE:-"0"}
@@ -17,6 +18,7 @@ debug() {
}

if [ -n "$(pidof nginx)" ]; then
# shellcheck disable=SC2091
if $($(command -v nginx) -t 2> /dev/null); then
debug "Nginx detected... reloading"
service nginx reload


+ 3
- 0
evoacme/files/hooks/reload_postfix View File

@@ -1,6 +1,7 @@
#!/bin/sh

readonly PROGNAME=$(basename "$0")
# shellcheck disable=SC2124,SC2034
readonly ARGS=$@

readonly VERBOSE=${VERBOSE:-"0"}
@@ -17,7 +18,9 @@ debug() {
}

if [ -n "$(pidof master)" ]; then
# shellcheck disable=SC2091
if $($(command -v postconf) > /dev/null); then
# shellcheck disable=SC2091
if $($(command -v postconf)|grep -E "^smtpd_tls_cert_file"|grep -q "letsencrypt"); then
debug "Postfix detected... reloading"
service postfix reload


Loading…
Cancel
Save