1 Star 0 Fork 0

torn/teaweb-linux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
upgrade.sh 597 Bytes
一键复制 编辑 原始数据 按行查看 历史
torn 提交于 2019-08-31 22:38 . 初始项目
#!/usr/bin/env bash
# usage: ./upgrade.sh teaweb-vx.x.x
FROM=${1}
if [ ${FROM} ]
then
if [ ! -d ./web ]
then
mkdir ./web
fi
yes|cp -R ${FROM}/web/installers ./web/
yes|cp -R ${FROM}/web/libs ./web/
yes|cp -R ${FROM}/web/public ./web/
yes|cp -R ${FROM}/web/resources ./web/
yes|cp -R ${FROM}/scripts .
yes|cp -R ${FROM}/web/upgrade ./web/
yes|cp -R ${FROM}/web/views ./web/
yes|cp -R ${FROM}/www .
# bin & plugins
bin/teaweb stop
sleep 1
yes|cp -R ${FROM}/bin .
yes|cp -R ${FROM}/plugins .
bin/teaweb start
echo "[done]"
else
echo "usage: ./upgrade.sh teaweb-vx.x.x"
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/torns/teaweb-linux.git
git@gitee.com:torns/teaweb-linux.git
torns
teaweb-linux
teaweb-linux
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385