Приложение

Быстрая установка

echo "Install XREPORTS"
apt -y install unzip vim wget curl open-vm-tools zip
mkdir /root/xsquare
cd /root/xsquare
wget https://lcdp.xsquare.ru/files/xreports/rpm_dep/6.0.0.3/deb/xsquare.xreports_6.0.0.3.deb
dpkg -i xsquare.xreports_6.0.0.3.deb


##Install Libre Office. We recommend 7.4.7.2 or 24.8.4
echo "Install Libre Office"

apt -y install libxinerama1 libcairo2 libcups2 default-jre
cd /root/xsquare
wget https://lcdp.xsquare.ru/files/libreoffice/LibreOffice_24.8.4_Linux_x86-64_deb.tar.gz
tar -xvzf LibreOffice_24.8.4_Linux_x86-64_deb.tar.gz
dpkg -i ./LibreOffice_24.8.4.2_Linux_x86-64_deb/DEBS/*.deb

#set "soffice-path" in config
soffice_path=`find / -name "soffice"`
echo $soffice_path
old_soffice_path='"soffice-path": ""';
new_soffice_path='"soffice-path": "'$soffice_path'"';
echo  $new_soffice_path
sed -i -e "s#$old_soffice_path#$new_soffice_path#g" /usr/local/xsquare.xreports/config.json
cat /usr/local/xsquare.xreports/config.json
systemctl restart xsquare.xreports.service