1 Star 0 Fork 103

249405537 / onlyoffice一键部署

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fontsService.sh 799 Bytes
一键复制 编辑 原始数据 按行查看 历史
dan 提交于 2019-12-30 17:15 . change sript
#!/usr/bin/env bash
if [ -n "$1" ] ;then
echo "你指定了字体目录,请确保该目录下有字体文件,同时请确保你对这些字体拥有版权"
if [ ! -d userFonts ];then
mkdir userFonts
fi
cp $1/* userFonts
fi
var=$(cat .config)
arr=()
for element in $var
do
arr[${#arr[*]}]=$element
done
echo ${arr[0]} ${arr[1]};
data=${arr[0]}
tag=${arr[1]}
#rm -rf $data/workspace/fonts/*
cp -r workspace/fonts/* $data/workspace/fonts
if [ -d userFonts ];then
if [ "`ls -A userFonts`" = "" ]; then
echo "userFonts is indeed empty"
else
echo "userFonts is not empty"
cp -r userFonts/* $data/workspace/fonts
fi
fi
bash init.sh 64 $tag $data
sed -i 's/workspace\/workspace/workspace/g' $data/workspace/fonts/nutrition.js
Shell
1
https://gitee.com/rohochan/deploy.git
git@gitee.com:rohochan/deploy.git
rohochan
deploy
onlyoffice一键部署
master

搜索帮助