1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 23:19:36 +00:00

Use github action as ci test.

This commit is contained in:
ly1217
2020-01-13 18:55:55 -08:00
parent 28223c17a3
commit 74cd4594d6
7 changed files with 60 additions and 59 deletions

View File

@@ -167,7 +167,7 @@ connection_charset = utf8
ccnet_sql_path = join(self.sql_dir, 'mysql', 'ccnet.sql')
seafile_sql_path = join(self.sql_dir, 'mysql', 'seafile.sql')
sql = f'USE ccnet; source {ccnet_sql_path}; USE seafile; source {seafile_sql_path};'.encode()
shell('mysql -u root', inputdata=sql, wait=False)
shell('sudo mysql -u root -proot', inputdata=sql, wait=False)
else:
config_sql_path = join(self.sql_dir, 'sqlite', 'config.sql')
groupmgr_sql_path = join(self.sql_dir, 'sqlite', 'groupmgr.sql')
@@ -257,4 +257,4 @@ GRANT ALL PRIVILEGES ON `ccnet`.* to `seafile`@localhost;
GRANT ALL PRIVILEGES ON `seafile`.* to `seafile`@localhost;
'''
shell('mysql -u root', inputdata=sql)
shell('sudo mysql -u root -proot', inputdata=sql)