Fix shebangs

This commit is contained in:
William Desportes 2021-01-02 12:04:19 +01:00
parent 59ba34cb4b
commit 7765d4a6b3
No known key found for this signature in database
GPG key ID: 90A0EF1B8251A889
4 changed files with 6 additions and 6 deletions

View file

@ -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.

View file

@ -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

View file

@ -1,2 +1,2 @@
#!/bin/bash
#! /bin/bash
cat - > /tmp/pipe-test.out

View file

@ -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"