evoacme: remove shellcheck warnings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6764418e75
commit
7a9624fcc2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue