add-apt-repository -y ppa:openjdk-r/ppa
apt-get update
apt -y install language-pack-pl
localectl set-locale LANG=pl_PL.UTF-8

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

apt -y install wget
wget http://download.lsfusion.org/solutions/mycompany-6.2-SNAPSHOT.jar -O /var/lib/lsfusion/mycompany.jar
echo "logics.topModule = MyCompanyPl" >> /etc/lsfusion6-server/settings.properties

service lsfusion6-server stop
service lsfusion6-server start

#Allow connections to server 
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --permanent --add-port=7652/tcp
firewall-cmd --reload