From 9124f1acf355e4c91b6b50560aa4a8aae778f872 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sun, 20 Jun 2021 20:49:14 +0800 Subject: [PATCH] =?UTF-8?q?ql=20update=20=E6=B7=BB=E5=8A=A0patch=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell/update.sh b/shell/update.sh index cbf155a6..c15339fa 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -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