ql update 添加patch操作

This commit is contained in:
hanhh 2021-06-20 20:49:14 +08:00
parent 01e0a89ba9
commit 9124f1acf3

View File

@ -252,6 +252,13 @@ usage() {
update_qinglong() {
local no_restart="$1"
echo -e "--------------------------------------------------------------\n"
if [ -f /ql/db/cookie.db ] && [ ! -f /ql/db/env.db ]; then
echo -e "检测到旧的db文件拷贝为新db...\n"
mv /ql/db/cookie.db /ql/db/env.db
rm /ql/db/cookie.db
echo
fi
[ -f $dir_root/package.json ] && ql_depend_old=$(cat $dir_root/package.json)
reset_romote_url ${dir_root} "${github_proxy_url}https://github.com/whyour/qinglong.git"
git_pull_scripts $dir_root