Commit b19de188 authored by gubala's avatar gubala

adjusting for sudden prometheus dns change

parent 976bb3b9
Pipeline #9 skipped
......@@ -52,7 +52,7 @@ class ApplicationController < ActionController::Base
def sanitize_path
@path = params[:path]
@path.gsub!("gsiftp:/login01.prometheus.cyf-kr.edu.pl/", "prometheus/")
@path.gsub!("gsiftp:/login01.prometheus.cyfronet.pl/", "prometheus/")
@path = "/#{@path}" unless @path.start_with?('/')
@path = URI.escape @path
end
......@@ -98,7 +98,7 @@ class ApplicationController < ActionController::Base
end
def prometheus_path(path)
path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "prometheus/")
path.gsub("gsiftp://login01.prometheus.cyfronet.pl/", "prometheus/")
end
private
......
module FoldersHelper
def prometheus_path
@path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "prometheus/")
@path.gsub("gsiftp://login01.prometheus.cyfronet.pl/", "prometheus/")
end
def entry_path(entry)
......
......@@ -5,8 +5,8 @@
= t 'listing_folder'
- crumb_path = @path
- prometheus = false
- if crumb_path.include? "login01.prometheus.cyf-kr.edu.pl"
- crumb_path = crumb_path.gsub("gsiftp://login01.prometheus.cyf-kr.edu.pl/", "/")
- if crumb_path.include? "login01.prometheus.cyfronet.pl"
- crumb_path = crumb_path.gsub("gsiftp://login01.prometheus.cyfronet.pl/", "/")
- prometheus = true
- crumb_path.split('/').select{|c| c.present?}.each do |crumb|
- crumb = crumb
......
......@@ -5,7 +5,7 @@ Plgdata::Application.config.secondary_gridftp_host = 'qcg.grid.cyf-kr.edu.pl'
Plgdata::Application.config.primary_gridftp_port = 2811
Plgdata::Application.config.secondary_gridftp_port = 2811
Plgdata::Application.config.prometheus_gridftp_host = 'login01.prometheus.cyf-kr.edu.pl'
Plgdata::Application.config.prometheus_gridftp_host = 'login01.prometheus.cyfronet.pl'
GFTP::SERVER_HOST = Plgdata::Application.config.primary_gridftp_host
puts "Setting up primary GridFTP server to #{GFTP::SERVER_HOST}."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment