mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Remove unusual space from shebang line (#2834)
This commit is contained in:
parent
284c44faa9
commit
a930aeb18a
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This user patches script runs right before starting the daemons.
|
# This user patches script runs right before starting the daemons.
|
||||||
# That means, all the other configuration is in place, so the script
|
# That means, all the other configuration is in place, so the script
|
||||||
|
|
|
@ -21,7 +21,7 @@ If you are managing your directory structure yourself, create a `docker-data/dms
|
||||||
The contents could look like this:
|
The contents could look like this:
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cat >/etc/amavis/conf.d/50-user << "END"
|
cat >/etc/amavis/conf.d/50-user << "END"
|
||||||
use strict;
|
use strict;
|
||||||
|
|
2
setup.sh
2
setup.sh
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# version v1.0.0
|
# version v1.0.0
|
||||||
# executed manually / via Make
|
# executed manually / via Make
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/log.sh
|
# shellcheck source=../scripts/helpers/log.sh
|
||||||
source /usr/local/bin/helpers/log.sh
|
source /usr/local/bin/helpers/log.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Report a quota usage warning to an user
|
# Report a quota usage warning to an user
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT='setup'
|
SCRIPT='setup'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../scripts/helpers/index.sh
|
# shellcheck source=../scripts/helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# -eE :: exit on error (do this in functions as well)
|
# -eE :: exit on error (do this in functions as well)
|
||||||
# -u :: show (and exit) when using unset variables
|
# -u :: show (and exit) when using unset variables
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# TODO: Adapt for compatibility with LDAP
|
# TODO: Adapt for compatibility with LDAP
|
||||||
# Only the cert renewal change detection may be relevant for LDAP?
|
# Only the cert renewal change detection may be relevant for LDAP?
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Support for Postfix accounts managed via Dovecot
|
# Support for Postfix accounts managed via Dovecot
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
# Support for Postfix aliases
|
# Support for Postfix aliases
|
||||||
|
|
||||||
# NOTE: LDAP doesn't appear to use this, but the docs page: "Use Cases | Forward-Only Mail-Server with LDAP"
|
# NOTE: LDAP doesn't appear to use this, but the docs page: "Use Cases | Forward-Only Mail-Server with LDAP"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This helper supports the changedetector service. Used by:
|
# This helper supports the changedetector service. Used by:
|
||||||
# - check-for-changes.sh
|
# - check-for-changes.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Matches relative path to this scripts parent directory,
|
# Matches relative path to this scripts parent directory,
|
||||||
# Must be defined above any function that would source relative to it:
|
# Must be defined above any function that would source relative to it:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Manage DB writes for: DATABASE_QUOTA
|
# Manage DB writes for: DATABASE_QUOTA
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Manage DB writes for:
|
# Manage DB writes for:
|
||||||
# - DATABASE_ACCOUNTS
|
# - DATABASE_ACCOUNTS
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Manage DB writes for: DATABASE_VIRTUAL
|
# Manage DB writes for: DATABASE_VIRTUAL
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Outputs the DNS label count (delimited by `.`) for the given input string.
|
# 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).
|
# Useful for determining an FQDN like `mail.example.com` (3), vs `example.com` (2).
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _exit_with_error
|
function _exit_with_error
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source-path=target/scripts/helpers
|
# shellcheck source-path=target/scripts/helpers
|
||||||
# This file serves as a single import for all helpers
|
# This file serves as a single import for all helpers
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This becomes the sourcing script name
|
# This becomes the sourcing script name
|
||||||
# (example: check-for-changes.sh)
|
# (example: check-for-changes.sh)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck disable=SC2291 # Quote repeated spaces to avoid them collapsing into one.
|
# shellcheck disable=SC2291 # Quote repeated spaces to avoid them collapsing into one.
|
||||||
# shellcheck disable=SC2034 # VAR appears unused.
|
# shellcheck disable=SC2034 # VAR appears unused.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _mask_ip_digit
|
function _mask_ip_digit
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
# Support for Postfix features
|
# Support for Postfix features
|
||||||
|
|
||||||
# Docs - virtual_mailbox_domains (Used in /etc/postfix/main.cf):
|
# Docs - virtual_mailbox_domains (Used in /etc/postfix/main.cf):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
# Support for Relay Hosts
|
# Support for Relay Hosts
|
||||||
|
|
||||||
# Description:
|
# Description:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _setup_ssl
|
function _setup_ssl
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _escape
|
function _escape
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
declare -A VARS
|
declare -A VARS
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# ? >> Sourcing helpers & stacks
|
# ? >> Sourcing helpers & stacks
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _check
|
function _check
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _start_daemons
|
function _start_daemons
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _apply_fixes
|
function _apply_fixes
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _start_misc
|
function _start_misc
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function _setup
|
function _setup
|
||||||
{
|
{
|
||||||
|
@ -868,7 +868,7 @@ function _setup_security_stack
|
||||||
sa-update --import /etc/spamassassin/kam/kam.sa-channels.mcgrail.com.key
|
sa-update --import /etc/spamassassin/kam/kam.sa-channels.mcgrail.com.key
|
||||||
|
|
||||||
cat >"${SPAMASSASSIN_KAM_CRON_FILE}" <<"EOM"
|
cat >"${SPAMASSASSIN_KAM_CRON_FILE}" <<"EOM"
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
RESULT=$(sa-update --gpgkey 24C063D8 --channel kam.sa-channels.mcgrail.com 2>&1)
|
RESULT=$(sa-update --gpgkey 24C063D8 --channel kam.sa-channels.mcgrail.com 2>&1)
|
||||||
EXIT_CODE=${?}
|
EXIT_CODE=${?}
|
||||||
|
@ -982,7 +982,7 @@ function _setup_mail_summary
|
||||||
_log 'trace' 'Creating daily cron job for pflogsumm report'
|
_log 'trace' 'Creating daily cron job for pflogsumm report'
|
||||||
|
|
||||||
cat >/etc/cron.daily/postfix-summary << EOM
|
cat >/etc/cron.daily/postfix-summary << EOM
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
/usr/local/bin/report-pflogsumm-yesterday ${HOSTNAME} ${PFLOGSUMM_RECIPIENT} ${PFLOGSUMM_SENDER}
|
/usr/local/bin/report-pflogsumm-yesterday ${HOSTNAME} ${PFLOGSUMM_RECIPIENT} ${PFLOGSUMM_SENDER}
|
||||||
EOM
|
EOM
|
||||||
|
@ -1030,7 +1030,7 @@ function _setup_logwatch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat >"${LOGWATCH_FILE}" << EOM
|
cat >"${LOGWATCH_FILE}" << EOM
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
/usr/sbin/logwatch ${INTERVAL} --hostname ${HOSTNAME} --mailto ${LOGWATCH_RECIPIENT}
|
/usr/sbin/logwatch ${INTERVAL} --hostname ${HOSTNAME} --mailto ${LOGWATCH_RECIPIENT}
|
||||||
EOM
|
EOM
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=./helpers/log.sh
|
# shellcheck source=./helpers/log.sh
|
||||||
source /usr/local/bin/helpers/log.sh
|
source /usr/local/bin/helpers/log.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# You cannot start fail2ban in some foreground mode and
|
# You cannot start fail2ban in some foreground mode and
|
||||||
# it's more or less important that docker doesn't kill
|
# it's more or less important that docker doesn't kill
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# You cannot start postfix in some foreground mode and
|
# You cannot start postfix in some foreground mode and
|
||||||
# it's more or less important that docker doesn't kill
|
# it's more or less important that docker doesn't kill
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# shellcheck source=../helpers/index.sh
|
# shellcheck source=../helpers/index.sh
|
||||||
source /usr/local/bin/helpers/index.sh
|
source /usr/local/bin/helpers/index.sh
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
cat - > /tmp/pipe-test.out
|
cat - > /tmp/pipe-test.out
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
##
|
##
|
||||||
# This user script will be executed between configuration and starting daemons
|
# 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"
|
# To enable it you must save it in your config directory as "user-patches.sh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# version v0.3.0
|
# version v0.3.0
|
||||||
# executed by Make (during CI or manually)
|
# executed by Make (during CI or manually)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
load 'test_helper/bats-support/load'
|
load 'test_helper/bats-support/load'
|
||||||
load 'test_helper/bats-assert/load'
|
load 'test_helper/bats-assert/load'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
load 'test_helper/common'
|
load 'test_helper/common'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue