From 0fcf06b8e23f1fa55b5b484235ffe45019e669e0 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 8 Oct 2013 21:56:15 +0200 Subject: save config when setup is finished --- pyload/setup/Setup.py | 4 ++++ pyload/web/setup_app.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/pyload/setup/Setup.py b/pyload/setup/Setup.py index cea960885..c61a389e2 100644 --- a/pyload/setup/Setup.py +++ b/pyload/setup/Setup.py @@ -304,6 +304,10 @@ class Setup(): self.db.syncSave() self.db.shutdown() + def save(self): + self.config.save() + self.closeDB() + def conf_path(self, trans=False): if trans: gettext.setpaths([join(os.sep, "usr", "share", "pyload", "locale"), None]) diff --git a/pyload/web/setup_app.py b/pyload/web/setup_app.py index 680c5ae89..939fcb600 100644 --- a/pyload/web/setup_app.py +++ b/pyload/web/setup_app.py @@ -65,6 +65,8 @@ def setup_done(): request.params['password'] ) + SETUP.save() + # mark setup as finished timestamp = 0 -- cgit v1.2.3