You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.6 KiB

6 years ago
#!/etc/bash
#11.20
5 years ago
del_rubbish(){
python -c "from function import *;down_db.delete_many({});"
}
6 years ago
#2019.01.10
5 years ago
update_sp(){
ps -aux | grep supervisord | awk '{print "kill -9 " $2}'|sh
rm -rf supervisord.conf
cp supervisord.conf.sample supervisord.conf
supervisord -c supervisord.conf
}
#2019.01.18
update_config(){
num=`cat config.py | grep "show_secret" | wc -l`
if [ $num == 0 ]; then
echo 'show_secret="no"' >> config.py
fi
}
restart(){
supervisorctl -c supervisord.conf restart pyone
}
6 years ago
#执行
echo "2018.11.20更新版本,修复了磁力链接下载的bug&上传、展示有特殊字符的文件出问题的bug。"
echo "2018.11.21更新版本,优化磁力下载功能-可选下载文件。"
6 years ago
echo "2018.12.04更新版本,优化磁力下载界面"
echo "2018.12.10更新版本,修复特定分享目录后,二级目录设置密码出错的bug"
echo "2018.12.20更新版本,基础设置之后无需重启网站啦!如果你一直有保存之后不生效的问题,那么本次直接重启服务器吧!"
echo "2019.01.10更新版本,1. 修复防盗链失效的bug;2. 优化开机启动脚本。"
5 years ago
echo "2019.01.13更新版本,修复后台修改密码不生效的bug"
5 years ago
echo "2019.01.14更新版本,修复bug"
echo "2019.01.18更新版本,修复bug;添加搜索功能"
echo "2019.01.21更新版本,添加功能:后台直接添加盘符...避免小白添加配置出现各种问题"
update_config
restart
6 years ago
echo "---------------------------------------------------------------"
echo "更新完成!"
echo "---------------------------------------------------------------"
echo
echo "PyOne交流群:864996565"