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

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

No files matched your search

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