From f197071b2a0673d5f939a891e417706577b9f94e Mon Sep 17 00:00:00 2001 From: ngfchl Date: Wed, 7 Sep 2022 09:22:48 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BC=98=E5=8C=96=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 7f7d604..674db0c 100755 --- a/update.sh +++ b/update.sh @@ -1,6 +1,6 @@ # 先备份数据库文件再拉取更新 $(date "+%Y%m%d%H%M%S")当前时间年月日时分秒 cp /var/www/html/ptools/db/db.sqlite3 /var/www/html/ptools/db/db.sqlite3-$(date "+%Y%m%d%H%M%S") && git pull && - mv -f /var/www/html/ptools/start.sh /var/www/html/start.sh && + cp -f /var/www/html/ptools/start.sh /var/www/html/start.sh && python manage.py makemigrations && python manage.py migrate