From 7765d4a6b3524ccabb4d90c8acc97c9ae1782e06 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 2 Jan 2021 12:04:19 +0100 Subject: [PATCH] Fix shebangs --- config/user-patches.sh.dist | 2 +- target/start-mailserver.sh | 6 +++--- test/config/sieve-pipe/pipe_to_tmp | 2 +- test/config/user-patches/user-patches.sh | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/user-patches.sh.dist b/config/user-patches.sh.dist index d5d69a59..b4ba394a 100755 --- a/config/user-patches.sh.dist +++ b/config/user-patches.sh.dist @@ -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 can make final adjustments. # If you modify any supervisord configuration, make sure to run "supervisorctl update" afterwards. diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index f2a5552f..3645367e 100755 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -1759,7 +1759,7 @@ function _setup_mail_summary "daily_cron" ) _notify 'inf' "Creating daily cron job for pflogsumm report" - echo "#!/bin/bash" > /etc/cron.daily/postfix-summary + echo "#! /bin/bash" > /etc/cron.daily/postfix-summary echo "/usr/local/bin/report-pflogsumm-yesterday ${HOSTNAME} ${PFLOGSUMM_RECIPIENT} ${PFLOGSUMM_SENDER}" >> /etc/cron.daily/postfix-summary chmod +x /etc/cron.daily/postfix-summary @@ -1782,14 +1782,14 @@ function _setup_logwatch case "${LOGWATCH_INTERVAL}" in "daily" ) _notify 'inf' "Creating daily cron job for logwatch reports" - echo "#!/bin/bash" > /etc/cron.daily/logwatch + echo "#! /bin/bash" > /etc/cron.daily/logwatch echo "/usr/sbin/logwatch --range Yesterday --hostname ${HOSTNAME} --mailto ${LOGWATCH_RECIPIENT}" \ >> /etc/cron.daily/logwatch chmod 744 /etc/cron.daily/logwatch ;; "weekly" ) _notify 'inf' "Creating weekly cron job for logwatch reports" - echo "#!/bin/bash" > /etc/cron.weekly/logwatch + echo "#! /bin/bash" > /etc/cron.weekly/logwatch echo "/usr/sbin/logwatch --range 'between -7 days and -1 days' --hostname ${HOSTNAME} --mailto ${LOGWATCH_RECIPIENT}" \ >> /etc/cron.weekly/logwatch chmod 744 /etc/cron.weekly/logwatch diff --git a/test/config/sieve-pipe/pipe_to_tmp b/test/config/sieve-pipe/pipe_to_tmp index e34e9d51..e51fe0d4 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 0e374662..ee347776 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"