evoacme: remove shellcheck warnings
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Lecour 2020-04-16 09:44:25 +02:00 committed by Jérémy Lecour
parent 6764418e75
commit 7a9624fcc2
4 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
readonly PROGNAME=$(basename "$0") readonly PROGNAME=$(basename "$0")
# shellcheck disable=SC2124,SC2034
readonly ARGS=$@ readonly ARGS=$@
readonly VERBOSE=${VERBOSE:-"0"} readonly VERBOSE=${VERBOSE:-"0"}
@ -17,6 +18,7 @@ debug() {
} }
if [ -n "$(pidof apache2)" ]; then if [ -n "$(pidof apache2)" ]; then
# shellcheck disable=SC2091
if $($(command -v apache2ctl) -t 2> /dev/null); then if $($(command -v apache2ctl) -t 2> /dev/null); then
debug "Apache detected... reloading" debug "Apache detected... reloading"
service apache2 reload service apache2 reload

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
readonly PROGNAME=$(basename "$0") readonly PROGNAME=$(basename "$0")
# shellcheck disable=SC2124,SC2034
readonly ARGS=$@ readonly ARGS=$@
readonly VERBOSE=${VERBOSE:-"0"} readonly VERBOSE=${VERBOSE:-"0"}
@ -17,7 +18,9 @@ debug() {
} }
if [ -n "$(pidof dovecot)" ]; then if [ -n "$(pidof dovecot)" ]; then
# shellcheck disable=SC2091
if $($(command -v doveconf) > /dev/null); then if $($(command -v doveconf) > /dev/null); then
# shellcheck disable=SC2091
if $($(command -v doveconf)|grep -E "^ssl_cert[^_]"|grep -q "letsencrypt"); then if $($(command -v doveconf)|grep -E "^ssl_cert[^_]"|grep -q "letsencrypt"); then
debug "Dovecot detected... reloading" debug "Dovecot detected... reloading"
service dovecot reload service dovecot reload

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
readonly PROGNAME=$(basename "$0") readonly PROGNAME=$(basename "$0")
# shellcheck disable=SC2124,SC2034
readonly ARGS=$@ readonly ARGS=$@
readonly VERBOSE=${VERBOSE:-"0"} readonly VERBOSE=${VERBOSE:-"0"}
@ -17,6 +18,7 @@ debug() {
} }
if [ -n "$(pidof nginx)" ]; then if [ -n "$(pidof nginx)" ]; then
# shellcheck disable=SC2091
if $($(command -v nginx) -t 2> /dev/null); then if $($(command -v nginx) -t 2> /dev/null); then
debug "Nginx detected... reloading" debug "Nginx detected... reloading"
service nginx reload service nginx reload

View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
readonly PROGNAME=$(basename "$0") readonly PROGNAME=$(basename "$0")
# shellcheck disable=SC2124,SC2034
readonly ARGS=$@ readonly ARGS=$@
readonly VERBOSE=${VERBOSE:-"0"} readonly VERBOSE=${VERBOSE:-"0"}
@ -17,7 +18,9 @@ debug() {
} }
if [ -n "$(pidof master)" ]; then if [ -n "$(pidof master)" ]; then
# shellcheck disable=SC2091
if $($(command -v postconf) > /dev/null); then if $($(command -v postconf) > /dev/null); then
# shellcheck disable=SC2091
if $($(command -v postconf)|grep -E "^smtpd_tls_cert_file"|grep -q "letsencrypt"); then if $($(command -v postconf)|grep -E "^smtpd_tls_cert_file"|grep -q "letsencrypt"); then
debug "Postfix detected... reloading" debug "Postfix detected... reloading"
service postfix reload service postfix reload