memory: synchronize the upgrade to database v2 to be sure libervia's profile password is read to be written in the config file before its encryption
This commit is contained in:
parent
90115df6f1
commit
50503332d2
1 changed files with 2 additions and 3 deletions
|
|
@ -813,11 +813,10 @@ class Updater(object):
|
|||
return
|
||||
fixConfigOption('libervia', 'passphrase', password, False)
|
||||
d = self.dbpool.runQuery("SELECT value FROM param_ind WHERE category=? AND name=? AND profile_id=?", xmpp_pass_path + (profile_id,))
|
||||
d.addCallback(cb)
|
||||
return d.addCallback(cb)
|
||||
|
||||
d = self.dbpool.runQuery("SELECT id FROM profiles WHERE name='libervia'")
|
||||
d.addCallback(updateLiberviaConf)
|
||||
|
||||
d = self.dbpool.runQuery("SELECT profile_id,value FROM param_ind WHERE category=? AND name=?", xmpp_pass_path)
|
||||
d.addCallback(lambda dummy: self.dbpool.runQuery("SELECT profile_id,value FROM param_ind WHERE category=? AND name=?", xmpp_pass_path))
|
||||
d.addCallback(encrypt_values)
|
||||
return d
|
||||
|
|
|
|||
Loading…
Reference in a new issue