1 Star 0 Fork 2

geoyclv/sharelist

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
update.sh 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
Ting 提交于 2019-10-17 18:33 . update shell
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
echo "+============================================================+"
echo "| ShareList Installer |"
echo "| |"
echo "| <reruin@gmail.com> |"
echo "|------------------------------------------------------------|"
echo "| https://reruin.net |"
echo "+============================================================+"
echo ""
echo -e "\n| ShareList is updating ... "
# deps
if [ -n "$(command -v apt-get)" ]
then
apt-get install -y wget unzip >/dev/null 2>&1
elif [ -n "$(command -v yum)" ]
then
yum install -y wget unzip >/dev/null 2>&1
fi
echo -e "|\n| Download ShareList Package ... "
wget -O sharelist-master.zip https://github.com/reruin/sharelist/archive/master.zip >/dev/null 2>&1
unzip -q -o sharelist-master.zip -d ./
rm -rf ./plugins
rm -rf ./app/plugins
cp -rf sharelist-master/* ./
rm -rf sharelist-master*
echo -e "|\n| Install Dependents ... "
npm install >/dev/null 2>&1
pm2 restart all >/dev/null 2>&1
echo -e "|\n| Success: ShareList has been updated\n"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/geoyclv/sharelist.git
git@gitee.com:geoyclv/sharelist.git
geoyclv
sharelist
sharelist
master

搜索帮助