mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-12-24 07:19:19 +01:00
Fixed multilang support on CentOS based images
This commit is contained in:
parent
7cc5a15c92
commit
3f30022956
@ -80,6 +80,9 @@ RUN groupadd --system zabbix && \
|
||||
php-mysql \
|
||||
php-xml && \
|
||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||
cut -d"'" -f 2 | sort | \
|
||||
xargs -I '{}' bash -c 'localedef -v -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||
yum ${YUM_FLAGS_PERSISTANT} clean all && \
|
||||
rm -rf /var/cache/yum/
|
||||
|
||||
|
@ -81,6 +81,9 @@ RUN groupadd --system zabbix && \
|
||||
php-xml \
|
||||
postgresql && \
|
||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||
cut -d"'" -f 2 | sort | \
|
||||
xargs -I '{}' bash -c 'localedef -v -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||
rm -rf /var/cache/yum/
|
||||
|
||||
|
@ -82,6 +82,9 @@ RUN groupadd --system zabbix && \
|
||||
php-xml \
|
||||
supervisor && \
|
||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||
cut -d"'" -f 2 | sort | \
|
||||
xargs -I '{}' bash -c 'localedef -v -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||
rm -f /etc/php-fpm.d/www.conf && \
|
||||
mkdir -p /var/lib/php/ && \
|
||||
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
||||
|
@ -81,6 +81,9 @@ RUN groupadd --system zabbix && \
|
||||
php-pgsql \
|
||||
php-xml && \
|
||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||
cut -d"'" -f 2 | sort | \
|
||||
xargs -I '{}' bash -c 'localedef -v -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||
rm -f /etc/php-fpm.d/www.conf && \
|
||||
mkdir -p /var/lib/php/ && \
|
||||
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
||||
|
@ -170,6 +170,9 @@ RUN groupadd --system zabbix && \
|
||||
chown --quiet -R nginx:nginx /var/lib/php/ && \
|
||||
ls -lah /usr/share/zabbix/ && \
|
||||
ln -s /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/zabbix/fonts/graphfont.ttf && \
|
||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||
cut -d"'" -f 2 | sort | \
|
||||
xargs -I '{}' bash -c 'localedef -v -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||
yum ${YUM_FLAGS_PERSISTENT} clean all && \
|
||||
rm -rf /var/cache/yum/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user