Skip to content

Commit

Permalink
Add ccnet db name env
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Nov 5, 2024
1 parent 69b7940 commit 0edea22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ci/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def _env_add(*a, **kw):

_env_add('JWT_PRIVATE_KEY', '@%ukmcl$k=9u-grs4azdljk(sn0kd!=mzc17xd7x8#!u$1x@kl')

_env_add('SEAFILE_MYSQL_DB_CCNET_DB_NAME', 'ccnet')

# Prepend the seafile-server/python to PYTHONPATH so we don't need to "make
# install" each time after editing python files.
_env_add('PYTHONPATH', join(SeafileServer().projectdir, 'python'))
Expand Down
2 changes: 1 addition & 1 deletion ci/serverctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def add_seafile_db_conf(self):
user = seafile
password = seafile
db_name = seafile
ccnet_db_name = ccnet
connection_charset = utf8
'''
with open(seafile_conf, 'a+') as fp:
Expand Down Expand Up @@ -234,6 +233,7 @@ def get_seaserv_envs(self):
'SEAFILE_CENTRAL_CONF_DIR': self.central_conf_dir,
'CCNET_CONF_DIR': self.ccnet_conf_dir,
'SEAFILE_CONF_DIR': self.seafile_conf_dir,
'SEAFILE_MYSQL_DB_CCNET_DB_NAME': 'ccnet',
})
return envs

Expand Down
2 changes: 1 addition & 1 deletion common/seaf-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ load_db_option_from_env (DBOption *option)
env_user = g_getenv("SEAFILE_MYSQL_DB_USER");
env_passwd = g_getenv("SEAFILE_MYSQL_DB_PASSWORD");
env_host = g_getenv("SEAFILE_MYSQL_DB_HOST");
env_ccnet_db = g_getenv("SEAFILE_MYSQL_DB_HOST");
env_ccnet_db = g_getenv("SEAFILE_MYSQL_DB_CCNET_DB_NAME");
env_seafile_db = g_getenv("SEAFILE_MYSQL_DB_SEAFILE_DB_NAME");

if (env_user) {
Expand Down

0 comments on commit 0edea22

Please sign in to comment.