summarylogtreecommitdiffstats
path: root/0000-change_default_database_path.patch
blob: ab18858f099a568207867e52ebbe53ed5eb3f986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/config.py b/config.py
index da21670..d36ec4d 100644
--- a/config.py
+++ b/config.py
@@ -53,7 +53,7 @@ class mysql(object):
     auth_plugin = parse_qs(mysql_url.query).get('auth_plugin',[''])[0]      # auth_plugin, 默认为空, 可修改为'mysql_native_password','caching_sha2_password'
 
 class sqlite3(object):
-    path = os.path.join(os.path.dirname(__file__),'config','database.db')   # Sqlite3数据库文件地址
+    path = '/var/lib/qiandao/database.db'   # Sqlite3数据库文件地址
 
 # 数据库类型, 修改 sqlite3 为 mysql 使用 mysql
 db_type = os.getenv('DB_TYPE', 'sqlite3')                                   # 默认为Sqlite3, 需要使用MySQL时设置为'mysql'