apt-get install libgdiplus -y
mkdir /tmp/apoloninstall
wget -c https://repo.nikatron.com/install/myiqrf/apolon/v0.2.2/apolon-v0.2.2-data.tar -P /tar/apoloninstall
tar -xvf /tar/apoloninstall/apolon-v0.2.2-data.tar -C /tmp/apoloninstall
mkdir -p /srv/apolon/app
cp -r /tmp/apoloninstall/Apolon/. /srv/apolon/app
mkdir -p /srv/apolon/app/wwwroot/data/plans
cp /tmp/apoloninstall/apolon.service /etc/systemd/system/
cp /tmp/apoloninstall/apolonupdate.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable apolon
rm -rf /tar
rm -r /tmp/apoloninstall