From a930aeb18afccfb2bbba126e2ad63bfb06229018 Mon Sep 17 00:00:00 2001 From: Casper Date: Mon, 17 Oct 2022 10:40:09 +0200 Subject: [PATCH] Remove unusual space from shebang line (#2834) --- config-examples/user-patches.sh | 2 +- .../config/advanced/override-defaults/user-patches.md | 2 +- setup.sh | 2 +- target/bin/addalias | 2 +- target/bin/adddovecotmasteruser | 2 +- target/bin/addmailuser | 2 +- target/bin/addrelayhost | 2 +- target/bin/addsaslpassword | 2 +- target/bin/debug-fetchmail | 2 +- target/bin/delalias | 2 +- target/bin/deldovecotmasteruser | 2 +- target/bin/delmailuser | 2 +- target/bin/delquota | 2 +- target/bin/excluderelaydomain | 2 +- target/bin/fail2ban | 2 +- target/bin/listalias | 2 +- target/bin/listdovecotmasteruser | 2 +- target/bin/listmailuser | 2 +- target/bin/open-dkim | 2 +- target/bin/postfix-summary | 2 +- target/bin/print-environment | 2 +- target/bin/quota-warning | 2 +- target/bin/report-pflogsumm-yesterday | 2 +- target/bin/restrict-access | 2 +- target/bin/setquota | 2 +- target/bin/setup | 2 +- target/bin/updatedovecotmasteruser | 2 +- target/bin/updatemailuser | 2 +- target/bin/virus-wiper | 2 +- target/scripts/build/packages.sh | 2 +- target/scripts/check-for-changes.sh | 2 +- target/scripts/helpers/accounts.sh | 2 +- target/scripts/helpers/aliases.sh | 2 +- target/scripts/helpers/change-detection.sh | 2 +- target/scripts/helpers/database/db.sh | 2 +- target/scripts/helpers/database/manage/dovecot-quotas.sh | 2 +- .../scripts/helpers/database/manage/postfix-accounts.sh | 2 +- target/scripts/helpers/database/manage/postfix-virtual.sh | 2 +- target/scripts/helpers/dns.sh | 2 +- target/scripts/helpers/error.sh | 2 +- target/scripts/helpers/index.sh | 2 +- target/scripts/helpers/lock.sh | 2 +- target/scripts/helpers/log.sh | 2 +- target/scripts/helpers/network.sh | 2 +- target/scripts/helpers/postfix.sh | 2 +- target/scripts/helpers/relay.sh | 2 +- target/scripts/helpers/ssl.sh | 2 +- target/scripts/helpers/utils.sh | 2 +- target/scripts/helpers/variables.sh | 2 +- target/scripts/start-mailserver.sh | 2 +- target/scripts/startup/check-stack.sh | 2 +- target/scripts/startup/daemons-stack.sh | 2 +- target/scripts/startup/fixes-stack.sh | 2 +- target/scripts/startup/misc-stack.sh | 2 +- target/scripts/startup/setup-stack.sh | 8 ++++---- target/scripts/update-check.sh | 2 +- target/scripts/wrapper/fail2ban-wrapper.sh | 2 +- target/scripts/wrapper/postfix-wrapper.sh | 2 +- target/scripts/wrapper/postsrsd-wrapper.sh | 2 +- test/config/sieve-pipe/pipe_to_tmp | 2 +- test/config/user-patches/user-patches.sh | 2 +- test/linting/lint.sh | 2 +- test/test_helper/common.bash | 2 +- test/test_helper/tls.bash | 2 +- 64 files changed, 67 insertions(+), 67 deletions(-) diff --git a/config-examples/user-patches.sh b/config-examples/user-patches.sh index a2adcb27..f114b4ef 100755 --- a/config-examples/user-patches.sh +++ b/config-examples/user-patches.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # This user patches script runs right before starting the daemons. # That means, all the other configuration is in place, so the script diff --git a/docs/content/config/advanced/override-defaults/user-patches.md b/docs/content/config/advanced/override-defaults/user-patches.md index e03d9938..b1017336 100644 --- a/docs/content/config/advanced/override-defaults/user-patches.md +++ b/docs/content/config/advanced/override-defaults/user-patches.md @@ -21,7 +21,7 @@ If you are managing your directory structure yourself, create a `docker-data/dms The contents could look like this: ``` sh -#! /bin/bash +#!/bin/bash cat >/etc/amavis/conf.d/50-user << "END" use strict; diff --git a/setup.sh b/setup.sh index a17a9eeb..1642bf1f 100755 --- a/setup.sh +++ b/setup.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # version v1.0.0 # executed manually / via Make diff --git a/target/bin/addalias b/target/bin/addalias index b5d136ef..12941886 100755 --- a/target/bin/addalias +++ b/target/bin/addalias @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/adddovecotmasteruser b/target/bin/adddovecotmasteruser index 0f7d47ce..c59a980c 100755 --- a/target/bin/adddovecotmasteruser +++ b/target/bin/adddovecotmasteruser @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/addmailuser b/target/bin/addmailuser index 729bb4b8..8dd5406b 100755 --- a/target/bin/addmailuser +++ b/target/bin/addmailuser @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/addrelayhost b/target/bin/addrelayhost index 1bd606f5..a486db46 100755 --- a/target/bin/addrelayhost +++ b/target/bin/addrelayhost @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/addsaslpassword b/target/bin/addsaslpassword index d625d9d8..5c88246c 100755 --- a/target/bin/addsaslpassword +++ b/target/bin/addsaslpassword @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/debug-fetchmail b/target/bin/debug-fetchmail index 62d2d6aa..ab3df7e6 100755 --- a/target/bin/debug-fetchmail +++ b/target/bin/debug-fetchmail @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/log.sh source /usr/local/bin/helpers/log.sh diff --git a/target/bin/delalias b/target/bin/delalias index 1389b9a4..0afc53d8 100755 --- a/target/bin/delalias +++ b/target/bin/delalias @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/deldovecotmasteruser b/target/bin/deldovecotmasteruser index 9e12f716..532eb99f 100755 --- a/target/bin/deldovecotmasteruser +++ b/target/bin/deldovecotmasteruser @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/delmailuser b/target/bin/delmailuser index 7424e113..f9b15e2d 100755 --- a/target/bin/delmailuser +++ b/target/bin/delmailuser @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/delquota b/target/bin/delquota index 47e89f57..0a5e4c0f 100755 --- a/target/bin/delquota +++ b/target/bin/delquota @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/excluderelaydomain b/target/bin/excluderelaydomain index e4091dcf..94f38965 100755 --- a/target/bin/excluderelaydomain +++ b/target/bin/excluderelaydomain @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/fail2ban b/target/bin/fail2ban index 596672c3..8a01d1b6 100755 --- a/target/bin/fail2ban +++ b/target/bin/fail2ban @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/listalias b/target/bin/listalias index f09643c9..69779407 100755 --- a/target/bin/listalias +++ b/target/bin/listalias @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/listdovecotmasteruser b/target/bin/listdovecotmasteruser index cf61555b..1f6f6123 100755 --- a/target/bin/listdovecotmasteruser +++ b/target/bin/listdovecotmasteruser @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/listmailuser b/target/bin/listmailuser index 0607b6cd..7310a471 100755 --- a/target/bin/listmailuser +++ b/target/bin/listmailuser @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/open-dkim b/target/bin/open-dkim index 7bf13598..5da2ba03 100755 --- a/target/bin/open-dkim +++ b/target/bin/open-dkim @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/postfix-summary b/target/bin/postfix-summary index df0f11f3..9e20d149 100755 --- a/target/bin/postfix-summary +++ b/target/bin/postfix-summary @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/print-environment b/target/bin/print-environment index 468c3f76..b053f1bd 100755 --- a/target/bin/print-environment +++ b/target/bin/print-environment @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/quota-warning b/target/bin/quota-warning index 860825f0..42235562 100755 --- a/target/bin/quota-warning +++ b/target/bin/quota-warning @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Report a quota usage warning to an user diff --git a/target/bin/report-pflogsumm-yesterday b/target/bin/report-pflogsumm-yesterday index 291e7a0d..f4280e0e 100755 --- a/target/bin/report-pflogsumm-yesterday +++ b/target/bin/report-pflogsumm-yesterday @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/restrict-access b/target/bin/restrict-access index 19f430da..5334a795 100755 --- a/target/bin/restrict-access +++ b/target/bin/restrict-access @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/setquota b/target/bin/setquota index a230b2f5..c15b995d 100755 --- a/target/bin/setquota +++ b/target/bin/setquota @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/setup b/target/bin/setup index a855e422..8d2093fb 100755 --- a/target/bin/setup +++ b/target/bin/setup @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash SCRIPT='setup' diff --git a/target/bin/updatedovecotmasteruser b/target/bin/updatedovecotmasteruser index b9628184..621f116b 100755 --- a/target/bin/updatedovecotmasteruser +++ b/target/bin/updatedovecotmasteruser @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/updatemailuser b/target/bin/updatemailuser index 7a0d4075..327bcde6 100755 --- a/target/bin/updatemailuser +++ b/target/bin/updatemailuser @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../scripts/helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/target/bin/virus-wiper b/target/bin/virus-wiper index 94458a11..29d2e428 100755 --- a/target/bin/virus-wiper +++ b/target/bin/virus-wiper @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash set -e diff --git a/target/scripts/build/packages.sh b/target/scripts/build/packages.sh index 5bb35437..6a29effe 100644 --- a/target/scripts/build/packages.sh +++ b/target/scripts/build/packages.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # -eE :: exit on error (do this in functions as well) # -u :: show (and exit) when using unset variables diff --git a/target/scripts/check-for-changes.sh b/target/scripts/check-for-changes.sh index 162ce720..5c3d34c6 100755 --- a/target/scripts/check-for-changes.sh +++ b/target/scripts/check-for-changes.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # TODO: Adapt for compatibility with LDAP # Only the cert renewal change detection may be relevant for LDAP? diff --git a/target/scripts/helpers/accounts.sh b/target/scripts/helpers/accounts.sh index 52e7c371..9d6c44e6 100644 --- a/target/scripts/helpers/accounts.sh +++ b/target/scripts/helpers/accounts.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Support for Postfix accounts managed via Dovecot diff --git a/target/scripts/helpers/aliases.sh b/target/scripts/helpers/aliases.sh index 539abf9d..4d26f91a 100644 --- a/target/scripts/helpers/aliases.sh +++ b/target/scripts/helpers/aliases.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Support for Postfix aliases # NOTE: LDAP doesn't appear to use this, but the docs page: "Use Cases | Forward-Only Mail-Server with LDAP" diff --git a/target/scripts/helpers/change-detection.sh b/target/scripts/helpers/change-detection.sh index 28817390..412b6322 100644 --- a/target/scripts/helpers/change-detection.sh +++ b/target/scripts/helpers/change-detection.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # This helper supports the changedetector service. Used by: # - check-for-changes.sh diff --git a/target/scripts/helpers/database/db.sh b/target/scripts/helpers/database/db.sh index 990d0d2f..66476772 100644 --- a/target/scripts/helpers/database/db.sh +++ b/target/scripts/helpers/database/db.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Matches relative path to this scripts parent directory, # Must be defined above any function that would source relative to it: diff --git a/target/scripts/helpers/database/manage/dovecot-quotas.sh b/target/scripts/helpers/database/manage/dovecot-quotas.sh index 3d783f50..802eb78f 100644 --- a/target/scripts/helpers/database/manage/dovecot-quotas.sh +++ b/target/scripts/helpers/database/manage/dovecot-quotas.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Manage DB writes for: DATABASE_QUOTA diff --git a/target/scripts/helpers/database/manage/postfix-accounts.sh b/target/scripts/helpers/database/manage/postfix-accounts.sh index 37ae1647..ad91982f 100644 --- a/target/scripts/helpers/database/manage/postfix-accounts.sh +++ b/target/scripts/helpers/database/manage/postfix-accounts.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Manage DB writes for: # - DATABASE_ACCOUNTS diff --git a/target/scripts/helpers/database/manage/postfix-virtual.sh b/target/scripts/helpers/database/manage/postfix-virtual.sh index caef1bd3..c4108f90 100644 --- a/target/scripts/helpers/database/manage/postfix-virtual.sh +++ b/target/scripts/helpers/database/manage/postfix-virtual.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Manage DB writes for: DATABASE_VIRTUAL diff --git a/target/scripts/helpers/dns.sh b/target/scripts/helpers/dns.sh index 01b5fd0d..1a471d16 100644 --- a/target/scripts/helpers/dns.sh +++ b/target/scripts/helpers/dns.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Outputs the DNS label count (delimited by `.`) for the given input string. # Useful for determining an FQDN like `mail.example.com` (3), vs `example.com` (2). diff --git a/target/scripts/helpers/error.sh b/target/scripts/helpers/error.sh index 1a7b95e0..1dd81e55 100644 --- a/target/scripts/helpers/error.sh +++ b/target/scripts/helpers/error.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _exit_with_error { diff --git a/target/scripts/helpers/index.sh b/target/scripts/helpers/index.sh index 1136db16..1e919513 100644 --- a/target/scripts/helpers/index.sh +++ b/target/scripts/helpers/index.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source-path=target/scripts/helpers # This file serves as a single import for all helpers diff --git a/target/scripts/helpers/lock.sh b/target/scripts/helpers/lock.sh index 80e74aa0..69a10c1a 100644 --- a/target/scripts/helpers/lock.sh +++ b/target/scripts/helpers/lock.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # This becomes the sourcing script name # (example: check-for-changes.sh) diff --git a/target/scripts/helpers/log.sh b/target/scripts/helpers/log.sh index eb031f55..80d8c4b0 100644 --- a/target/scripts/helpers/log.sh +++ b/target/scripts/helpers/log.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck disable=SC2291 # Quote repeated spaces to avoid them collapsing into one. # shellcheck disable=SC2034 # VAR appears unused. diff --git a/target/scripts/helpers/network.sh b/target/scripts/helpers/network.sh index c0f7d0a8..a1e3665d 100644 --- a/target/scripts/helpers/network.sh +++ b/target/scripts/helpers/network.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _mask_ip_digit { diff --git a/target/scripts/helpers/postfix.sh b/target/scripts/helpers/postfix.sh index f81a4955..09ad14c8 100644 --- a/target/scripts/helpers/postfix.sh +++ b/target/scripts/helpers/postfix.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Support for Postfix features # Docs - virtual_mailbox_domains (Used in /etc/postfix/main.cf): diff --git a/target/scripts/helpers/relay.sh b/target/scripts/helpers/relay.sh index 0964a28b..05d79a40 100644 --- a/target/scripts/helpers/relay.sh +++ b/target/scripts/helpers/relay.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # Support for Relay Hosts # Description: diff --git a/target/scripts/helpers/ssl.sh b/target/scripts/helpers/ssl.sh index 4443acbe..0fc41f84 100644 --- a/target/scripts/helpers/ssl.sh +++ b/target/scripts/helpers/ssl.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _setup_ssl { diff --git a/target/scripts/helpers/utils.sh b/target/scripts/helpers/utils.sh index 6c0b3ae4..04601ad4 100644 --- a/target/scripts/helpers/utils.sh +++ b/target/scripts/helpers/utils.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _escape { diff --git a/target/scripts/helpers/variables.sh b/target/scripts/helpers/variables.sh index 2d7b972c..8753ff08 100644 --- a/target/scripts/helpers/variables.sh +++ b/target/scripts/helpers/variables.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck disable=SC2034 declare -A VARS diff --git a/target/scripts/start-mailserver.sh b/target/scripts/start-mailserver.sh index d8068c1e..8c71aaae 100755 --- a/target/scripts/start-mailserver.sh +++ b/target/scripts/start-mailserver.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # ------------------------------------------------------------ # ? >> Sourcing helpers & stacks diff --git a/target/scripts/startup/check-stack.sh b/target/scripts/startup/check-stack.sh index 0560dd01..f8a13b7c 100644 --- a/target/scripts/startup/check-stack.sh +++ b/target/scripts/startup/check-stack.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _check { diff --git a/target/scripts/startup/daemons-stack.sh b/target/scripts/startup/daemons-stack.sh index 8215ff83..8fe0d967 100644 --- a/target/scripts/startup/daemons-stack.sh +++ b/target/scripts/startup/daemons-stack.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _start_daemons { diff --git a/target/scripts/startup/fixes-stack.sh b/target/scripts/startup/fixes-stack.sh index 2486835f..9a2f9615 100644 --- a/target/scripts/startup/fixes-stack.sh +++ b/target/scripts/startup/fixes-stack.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _apply_fixes { diff --git a/target/scripts/startup/misc-stack.sh b/target/scripts/startup/misc-stack.sh index 584d26db..a19efe92 100644 --- a/target/scripts/startup/misc-stack.sh +++ b/target/scripts/startup/misc-stack.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _start_misc { diff --git a/target/scripts/startup/setup-stack.sh b/target/scripts/startup/setup-stack.sh index 412f500b..5ac703fc 100644 --- a/target/scripts/startup/setup-stack.sh +++ b/target/scripts/startup/setup-stack.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash function _setup { @@ -868,7 +868,7 @@ function _setup_security_stack sa-update --import /etc/spamassassin/kam/kam.sa-channels.mcgrail.com.key cat >"${SPAMASSASSIN_KAM_CRON_FILE}" <<"EOM" -#! /bin/bash +#!/bin/bash RESULT=$(sa-update --gpgkey 24C063D8 --channel kam.sa-channels.mcgrail.com 2>&1) EXIT_CODE=${?} @@ -982,7 +982,7 @@ function _setup_mail_summary _log 'trace' 'Creating daily cron job for pflogsumm report' cat >/etc/cron.daily/postfix-summary << EOM -#! /bin/bash +#!/bin/bash /usr/local/bin/report-pflogsumm-yesterday ${HOSTNAME} ${PFLOGSUMM_RECIPIENT} ${PFLOGSUMM_SENDER} EOM @@ -1030,7 +1030,7 @@ function _setup_logwatch fi cat >"${LOGWATCH_FILE}" << EOM -#! /bin/bash +#!/bin/bash /usr/sbin/logwatch ${INTERVAL} --hostname ${HOSTNAME} --mailto ${LOGWATCH_RECIPIENT} EOM diff --git a/target/scripts/update-check.sh b/target/scripts/update-check.sh index 40054d29..fb1294ad 100755 --- a/target/scripts/update-check.sh +++ b/target/scripts/update-check.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=./helpers/log.sh source /usr/local/bin/helpers/log.sh diff --git a/target/scripts/wrapper/fail2ban-wrapper.sh b/target/scripts/wrapper/fail2ban-wrapper.sh index 883afcfd..32efebb5 100755 --- a/target/scripts/wrapper/fail2ban-wrapper.sh +++ b/target/scripts/wrapper/fail2ban-wrapper.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # You cannot start fail2ban in some foreground mode and # it's more or less important that docker doesn't kill diff --git a/target/scripts/wrapper/postfix-wrapper.sh b/target/scripts/wrapper/postfix-wrapper.sh index 2de7ed8e..3a5ce5c4 100755 --- a/target/scripts/wrapper/postfix-wrapper.sh +++ b/target/scripts/wrapper/postfix-wrapper.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # You cannot start postfix in some foreground mode and # it's more or less important that docker doesn't kill diff --git a/target/scripts/wrapper/postsrsd-wrapper.sh b/target/scripts/wrapper/postsrsd-wrapper.sh index 26279b39..0e249e5f 100755 --- a/target/scripts/wrapper/postsrsd-wrapper.sh +++ b/target/scripts/wrapper/postsrsd-wrapper.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # shellcheck source=../helpers/index.sh source /usr/local/bin/helpers/index.sh diff --git a/test/config/sieve-pipe/pipe_to_tmp b/test/config/sieve-pipe/pipe_to_tmp index e51fe0d4..e34e9d51 100644 --- a/test/config/sieve-pipe/pipe_to_tmp +++ b/test/config/sieve-pipe/pipe_to_tmp @@ -1,2 +1,2 @@ -#! /bin/bash +#!/bin/bash cat - > /tmp/pipe-test.out diff --git a/test/config/user-patches/user-patches.sh b/test/config/user-patches/user-patches.sh index ee347776..0e374662 100755 --- a/test/config/user-patches/user-patches.sh +++ b/test/config/user-patches/user-patches.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash ## # This user script will be executed between configuration and starting daemons # To enable it you must save it in your config directory as "user-patches.sh" diff --git a/test/linting/lint.sh b/test/linting/lint.sh index 48d68269..3afb0cb0 100755 --- a/test/linting/lint.sh +++ b/test/linting/lint.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # version v0.3.0 # executed by Make (during CI or manually) diff --git a/test/test_helper/common.bash b/test/test_helper/common.bash index 147b8e91..46b92317 100644 --- a/test/test_helper/common.bash +++ b/test/test_helper/common.bash @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash load 'test_helper/bats-support/load' load 'test_helper/bats-assert/load' diff --git a/test/test_helper/tls.bash b/test/test_helper/tls.bash index ae4978c0..7ced47fb 100644 --- a/test/test_helper/tls.bash +++ b/test/test_helper/tls.bash @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash load 'test_helper/common'