1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-30 08:53:05 +00:00
This commit is contained in:
nishiki 2014-01-12 14:09:32 +01:00
parent b9988102d6
commit d458a09a75

View file

@ -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',