Fix #188: Create file /etc/default/locale

File is created "manually" to keep cron happy and prevent it from
spewing errors into the log. Hopefully this will be enough.
This commit is contained in:
Bojan Čekrlić 2024-04-23 07:23:57 +01:00
parent 95119aa607
commit c50f864ed8

View file

@ -36,4 +36,11 @@ else
do_ubuntu
fi
# Some services (eg. cron) will complain if this file does not exists, even if it's empty
# The file is usually generated by update-locales, which is ran automatically when you do
# `apt-get install locales`. So instead of adding another package, which at the moment we
# do not need, we just create a simple "empty" file instead and hope to keep cron happy.
mkdir -p /etc/default/
echo "# File generated by postfix-install.sh" > /etc/default/locale
cp -r /etc/postfix /etc/postfix.template