Skip to content

Commit

Permalink
Adjusting the locale environment before the daemons are started to ma…
Browse files Browse the repository at this point in the history
…ke sure language selection works. (#347)

This adjustment affects Ubuntu, Debian and CentOS, but not FreeBSD, since the available start files are not used by FreeBSD.
  • Loading branch information
matsduf committed Jan 9, 2018
1 parent 9c48f99 commit 9408a8f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions share/zm-backend.sh-mysql
Expand Up @@ -14,6 +14,13 @@
# database engine.
### END INIT INFO

# Unset potentially conflicting locale, setting the default
unset LANGUAGE
unset LANG
unset LC_MESSAGES
unset LC_ALL
export LC_CTYPE="en_US.UTF-8"

LOGDIR=/var/log/zonemaster
PIDDIR=/var/run/zonemaster
LISTENIP=127.0.0.1
Expand Down
7 changes: 7 additions & 0 deletions share/zm-backend.sh-postgresql
Expand Up @@ -14,6 +14,13 @@
# database engine.
### END INIT INFO

# Unset potentially conflicting locale, setting the default
unset LANGUAGE
unset LANG
unset LC_MESSAGES
unset LC_ALL
export LC_CTYPE="en_US.UTF-8"

LOGDIR=/var/log/zonemaster
PIDDIR=/var/run/zonemaster
LISTENIP=127.0.0.1
Expand Down
7 changes: 7 additions & 0 deletions share/zm-centos.sh-mysql
Expand Up @@ -13,6 +13,13 @@
# make up the Zonemaster Backend.
### END INIT INFO

# Unset potentially conflicting locale, setting the default
unset LANGUAGE
unset LANG
unset LC_MESSAGES
unset LC_ALL
export LC_CTYPE="en_US.UTF-8"

LOGDIR=/var/log/zonemaster
PIDDIR=/var/run/zonemaster
LISTENIP=127.0.0.1
Expand Down
7 changes: 7 additions & 0 deletions share/zm-centos.sh-postgresql
Expand Up @@ -13,6 +13,13 @@
# make up the Zonemaster Backend.
### END INIT INFO

# Unset potentially conflicting locale, setting the default
unset LANGUAGE
unset LANG
unset LC_MESSAGES
unset LC_ALL
export LC_CTYPE="en_US.UTF-8"

LOGDIR=/var/log/zonemaster
PIDDIR=/var/run/zonemaster
LISTENIP=127.0.0.1
Expand Down

0 comments on commit 9408a8f

Please sign in to comment.