Skip to content

Commit

Permalink
Fix #188: Create file /etc/default/locale
Browse files Browse the repository at this point in the history
File is created "manually" to keep cron happy and prevent it from
spewing errors into the log. Hopefully this will be enough.
  • Loading branch information
bokysan committed Apr 23, 2024
1 parent 95119aa commit c50f864
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-scripts/postfix-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c50f864

Please sign in to comment.