fix: locale now correctly set as en_US.UTF8

This commit is contained in:
Winston Smith 2022-10-12 14:00:22 +02:00
parent caccc449a5
commit dfa2c96b6a

View File

@ -15,7 +15,7 @@ Vagrant.configure("2") do |config|
zabbix.vm.provision "shell", inline: <<-SHELL
apt update
apt-get install -y locales
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
sed -i 's/^# *\(en_US.UTF-8 UTF-8\)/\1/' /etc/locale.gen
locale-gen
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
echo "export LANG=en_US.UTF-8" >> ~/.bashrc
@ -36,6 +36,8 @@ Vagrant.configure("2") do |config|
sed -i 's/#//g' /etc/zabbix/nginx.conf
sed -i 's/example.com/zabbix.local/g' /etc/zabbix/nginx.conf
systemctl restart zabbix-server zabbix-agent nginx php7.4-fpm
systemctl enable zabbix-server zabbix-agent nginx php7.4-fpm
reboot
SHELL
end