Skip to content

Commit

Permalink
Add topdir
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Aug 20, 2024
1 parent dc71575 commit 727c38f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/serverctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class ServerCtl(object):
def __init__(self, topdir, projectdir, datadir, fileserver, db='sqlite3', seaf_server_bin='seaf-server', ccnet_server_bin='ccnet-server'):
self.db = db
self.topdir = topdir
self.datadir = datadir
self.central_conf_dir = join(datadir, 'conf')
self.seafile_conf_dir = join(datadir, 'seafile-data')
Expand Down Expand Up @@ -54,7 +55,7 @@ def setup(self):
os.mkdir (self.central_conf_dir, 0o755)
os.mkdir (self.seafile_conf_dir, 0o755)
os.mkdir (self.ccnet_conf_dir, 0o755)
src = join(topdir, 'tests/conf/seahub_settings.py')
src = join(self.topdir, 'tests/conf/seahub_settings.py')
dst = join(self.central_conf_dir, 'seahub_settings.py')
shutil.copyfile(src, dst)

Expand Down

0 comments on commit 727c38f

Please sign in to comment.