1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-02 07:54:27 +00:00

Create tables by script.

This commit is contained in:
cuihaikuo
2019-03-27 16:14:00 +08:00
parent 3f5b7e4025
commit dd0519d7c3
18 changed files with 597 additions and 15 deletions

View File

@@ -628,6 +628,14 @@ def copy_scripts_and_libs():
except Exception, e:
error('failed to copy upgrade scripts: %s' % e)
# copy sql scripts
sql_scriptsdir = os.path.join(scripts_srcdir, 'sql')
dst_sql_scriptsdir = os.path.join(serverdir, 'sql')
try:
shutil.copytree(sql_scriptsdir, dst_sql_scriptsdir)
except Exception, e:
error('failed to copy sql scripts: %s' % e)
# copy runtime/seahub.conf
runtimedir = os.path.join(serverdir, 'runtime')
must_mkdir(runtimedir)