mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-29 14:28:55 +02:00
Change 'for' style (#3368)
This commit is contained in:
parent
8512dba8ad
commit
8bfe8424fc
26 changed files with 43 additions and 86 deletions
|
@ -10,8 +10,7 @@ function _register_start_daemon() {
|
|||
function _start_daemons() {
|
||||
_log 'info' 'Starting daemons'
|
||||
|
||||
for FUNCTION in "${DAEMONS_START[@]}"
|
||||
do
|
||||
for FUNCTION in "${DAEMONS_START[@]}"; do
|
||||
${FUNCTION}
|
||||
done
|
||||
}
|
||||
|
@ -56,8 +55,7 @@ function _start_daemon_postfix() {
|
|||
function _start_daemon_fetchmail() {
|
||||
if [[ ${FETCHMAIL_PARALLEL} -eq 1 ]]; then
|
||||
local COUNTER=0
|
||||
for _ in /etc/fetchmailrc.d/fetchmail-*.rc
|
||||
do
|
||||
for _ in /etc/fetchmailrc.d/fetchmail-*.rc; do
|
||||
COUNTER=$(( COUNTER + 1 ))
|
||||
_default_start_daemon "fetchmail-${COUNTER}"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue