summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-10-08 21:56:15 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-10-08 21:56:15 +0200
commit0fcf06b8e23f1fa55b5b484235ffe45019e669e0 (patch)
treec904a552df26e90919bea4736439d84e4201f1a3
parentadapter simplecrypter plugin (diff)
downloadpyload-0fcf06b8e23f1fa55b5b484235ffe45019e669e0.tar.xz
save config when setup is finished
-rw-r--r--pyload/setup/Setup.py4
-rw-r--r--pyload/web/setup_app.py2
2 files changed, 6 insertions, 0 deletions
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