#!/bin/bash
echo "开始安装LibreOffice"
yum -y install libreoffice
yum -y install libreoffice-headless
echo "开始安装中文字体"
wget -N http://qiniu.ttk.ink/upgrade/v3.0.5/fonts.zip
unzip -o fonts.zip
mv -f fonts /usr/share/fonts/win
rm -f fonts.zip
cd /usr/share/fonts/win
chmod -Rf 755 *
yum -y install fontconfig
mkfontscale
mkfontdir
fc-cache
echo '安装完成'
soffice --version
rm -f install.sh