Merge pull request #1737 from williamdes/fix/bangs

Fix shebangs
This commit is contained in:
Georg Lauterbach 2021-01-02 17:59:44 +01:00 committed by GitHub
commit 66422cbcb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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. # 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. # 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" ) "daily_cron" )
_notify 'inf' "Creating daily cron job for pflogsumm report" _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 echo "/usr/local/bin/report-pflogsumm-yesterday ${HOSTNAME} ${PFLOGSUMM_RECIPIENT} ${PFLOGSUMM_SENDER}" >> /etc/cron.daily/postfix-summary
chmod +x /etc/cron.daily/postfix-summary chmod +x /etc/cron.daily/postfix-summary
@ -1782,14 +1782,14 @@ function _setup_logwatch
case "${LOGWATCH_INTERVAL}" in case "${LOGWATCH_INTERVAL}" in
"daily" ) "daily" )
_notify 'inf' "Creating daily cron job for logwatch reports" _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}" \ echo "/usr/sbin/logwatch --range Yesterday --hostname ${HOSTNAME} --mailto ${LOGWATCH_RECIPIENT}" \
>> /etc/cron.daily/logwatch >> /etc/cron.daily/logwatch
chmod 744 /etc/cron.daily/logwatch chmod 744 /etc/cron.daily/logwatch
;; ;;
"weekly" ) "weekly" )
_notify 'inf' "Creating weekly cron job for logwatch reports" _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}" \ echo "/usr/sbin/logwatch --range 'between -7 days and -1 days' --hostname ${HOSTNAME} --mailto ${LOGWATCH_RECIPIENT}" \
>> /etc/cron.weekly/logwatch >> /etc/cron.weekly/logwatch
chmod 744 /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 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 # 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"