1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-25 02:47:04 +00:00

small code cleanup testing if the utf8 locale is installed

This commit is contained in:
Joshua Tauberer 2018-08-24 08:48:09 -04:00
parent cb162da5fe
commit 180b054dbc

View File

@ -14,7 +14,7 @@ source setup/preflight.sh
# Python may not be able to read/write files. This is also # Python may not be able to read/write files. This is also
# in the management daemon startup script and the cron script. # in the management daemon startup script and the cron script.
if [ -z `locale -a | grep en_US.utf8` ]; then if ! locale -a | grep en_US.utf8 > /dev/null; then
# Generate locale if not exists # Generate locale if not exists
hide_output locale-gen en_US.UTF-8 hide_output locale-gen en_US.UTF-8
fi fi