X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/35878846da952ebfe24f6d4ea801f4161d97463a..24bda5b91ff2677a586d2c8c16e0e44eafaa37bc:/cookbooks/web/definitions/rails_port.rb diff --git a/cookbooks/web/definitions/rails_port.rb b/cookbooks/web/definitions/rails_port.rb index 06a68504b..bbc3d60d9 100644 --- a/cookbooks/web/definitions/rails_port.rb +++ b/cookbooks/web/definitions/rails_port.rb @@ -204,6 +204,10 @@ define :rails_port, :action => [:create, :enable] do line.gsub!(/^( *)#thunderforest_key:.*$/, "\\1thunderforest_key: \"#{params[:thunderforest_key]}\"") end + if params[:totp_key] + line.gsub!(/^( *)#totp_key:.*$/, "\\1totp_key: \"#{params[:totp_key]}\"") + end + line.gsub!(/^( *)require_terms_seen:.*$/, "\\1require_terms_seen: true") line.gsub!(/^( *)require_terms_agreed:.*$/, "\\1require_terms_agreed: true")