mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-30 08:53:05 +00:00
fix bug
This commit is contained in:
parent
b9988102d6
commit
d458a09a75
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ class Server
|
||||||
last_update = Time.now.to_i
|
last_update = Time.now.to_i
|
||||||
config = {'gpg' => {'salt' => salt,
|
config = {'gpg' => {'salt' => salt,
|
||||||
'hash' => hash,
|
'hash' => hash,
|
||||||
'last_update' => last_update
|
'last_update' => last_update,
|
||||||
'data' => data}}
|
'data' => data}}
|
||||||
|
|
||||||
File.open(file_gpg, 'w') do |file|
|
File.open(file_gpg, 'w') do |file|
|
||||||
|
@ -135,7 +135,7 @@ class Server
|
||||||
|
|
||||||
send_msg = {:action => 'update',
|
send_msg = {:action => 'update',
|
||||||
:gpg_key => msg['gpg_key'],
|
:gpg_key => msg['gpg_key'],
|
||||||
:last_update => last_update
|
:last_update => last_update,
|
||||||
:msg => 'done'}
|
:msg => 'done'}
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
send_msg = {:action => 'update',
|
send_msg = {:action => 'update',
|
||||||
|
|
Loading…
Reference in a new issue