#81: small refactoring

This commit is contained in:
Vokhmin Alexey V 2013-04-08 19:14:36 +04:00
parent b17ae312e8
commit 6c94b0766c
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class KeyPair < ActiveRecord::Base
def check_keys
tmp = "#{APP_CONFIG['root_path']}/tmp"
system "sudo chown rosa:rosa #{tmp} && chmod 1777 #{tmp}"
system "sudo chown `whoami` #{tmp} && chmod 1777 #{tmp}"
dir = Dir.mktmpdir('keys-', tmp)
begin
%w(pubring secring).each do |kind|