forked from ungleich-public/cdist-contrib
[type/__dma*] Fix shellcheck errors
This commit is contained in:
parent
487574c865
commit
f9f5c578f7
4 changed files with 4 additions and 4 deletions
|
@ -158,7 +158,7 @@ if test -f "${__object:?}/parameter/send-test-mail"
|
||||||
then
|
then
|
||||||
if grep -q '^__mail_alias/root:' "${__messages_in:?}" \
|
if grep -q '^__mail_alias/root:' "${__messages_in:?}" \
|
||||||
|| grep -q '^__dma_auth/' "${__messages_in:?}" \
|
|| grep -q '^__dma_auth/' "${__messages_in:?}" \
|
||||||
|| $config_updated
|
|| ${config_updated}
|
||||||
then
|
then
|
||||||
cat <<-CODE
|
cat <<-CODE
|
||||||
sendmail root <<'EOF'
|
sendmail root <<'EOF'
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
os=$(cat "${__global:?}/explorer/os")
|
os=$(cat "${__global:?}/explorer/os")
|
||||||
|
|
||||||
# Install DMA
|
# Install DMA
|
||||||
case $os
|
case ${os}
|
||||||
in
|
in
|
||||||
(alpine)
|
(alpine)
|
||||||
__package dma --state present
|
__package dma --state present
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
# different_password: a line exists but with a different password
|
# different_password: a line exists but with a different password
|
||||||
# multiple: multiple lines matching host exist (should not happen)
|
# multiple: multiple lines matching host exist (should not happen)
|
||||||
|
|
||||||
auth_conf=$("${__type_explorer}/auth_conf")
|
auth_conf=$("${__type_explorer:?}/auth_conf")
|
||||||
test -r "${auth_conf}" || exit 0
|
test -r "${auth_conf}" || exit 0
|
||||||
|
|
||||||
awk -F'\n' '
|
awk -F'\n' '
|
||||||
|
|
|
@ -40,7 +40,7 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $state_should
|
case ${state_should}
|
||||||
in
|
in
|
||||||
(present)
|
(present)
|
||||||
test -n "${login}" || { echo '--login must be non-empty' >&2; exit 1; }
|
test -n "${login}" || { echo '--login must be non-empty' >&2; exit 1; }
|
||||||
|
|
Loading…
Reference in a new issue