Skip to content

Commit c50f864

Browse files
committed
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.
1 parent 95119aa commit c50f864

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build-scripts/postfix-install.sh

+7
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@ else
3636
do_ubuntu
3737
fi
3838

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

0 commit comments

Comments
 (0)