[Dovecot] WIP: Read env vars for cronjobs from prepared file

This commit is contained in:
andryyy
2020-05-04 07:49:30 +02:00
parent ffb6dae8c7
commit 9078031255
5 changed files with 12 additions and 4 deletions

View File

@@ -323,6 +323,9 @@ fi
# Fix more than 1 hardlink issue
touch /etc/crontab /etc/cron.*/*
# Prepare environment file for cronjobs
printenv | sed 's/^\(.*\)$/export \1/g' > /source_env.sh
# Clean old PID if any
[[ -f /var/run/dovecot/master.pid ]] && rm /var/run/dovecot/master.pid