Improved password imports.

ipc07
Luka Vandervelden 2018-09-22 23:10:14 +02:00
parent ee69c365ba
commit 3d5dd30d82
1 changed files with 2 additions and 2 deletions

View File

@ -28,11 +28,11 @@ Kemal.config.extra_options do |parser|
end end
parser.on "-P file", "--password-file file", "Password file." do |file_name| parser.on "-P file", "--password-file file", "Password file." do |file_name|
authd_db_password = File.read file_name authd_db_password = File.read(file_name).gsub /\n$/, ""
end end
parser.on "-K file", "--key-file file", "JWT key file" do |file_name| parser.on "-K file", "--key-file file", "JWT key file" do |file_name|
authd_jwt_key = File.read file_name authd_jwt_key = File.read file_name.gsub /\n$/, ""
end end
end end