apt-get update
apt -y install language-pack-ru
ocalectl set-locale LANG=ru_RU.UTF-8

source <(curl -s https://download.lsfusion.org/apt/install-lsfusion6)

apt -y install wget
wget http://download.lsfusion.org/solutions/erp-6.0.jar -O /var/lib/lsfusion/erp.jar
echo "logics.topModule = TopPharmRu" >> /etc/lsfusion6-server/settings.properties
sed -i 's/-Xmx1g/-Xmx4g/g' /etc/lsfusion6-server/lsfusion.conf

service lsfusion6-server stop
service lsfusion6-server start
