diff --git a/app/controllers/downloads_controller.rb b/app/controllers/downloads_controller.rb index 943f305bc..7ca699b8b 100644 --- a/app/controllers/downloads_controller.rb +++ b/app/controllers/downloads_controller.rb @@ -16,5 +16,6 @@ class DownloadsController < ApplicationController def test_sudo system('sudo touch /home/rosa/test_sudo1.txt') system('/usr/bin/sudo /bin/touch /home/rosa/test_sudo2.txt') + redirect_to downloads_path, :notice => 'Sudo tested!' end end diff --git a/config/routes.rb b/config/routes.rb index 28a3da42a..b01f0d1c1 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,7 +21,7 @@ Rosa::Application.routes.draw do #resources :downloads, :only => :index match 'statistics/' => 'downloads#index', :as => :downloads match 'statistics/refresh' => 'downloads#refresh', :as => :downloads_refresh - match 'statistics/test_sudo' => 'statistics#test_sudo', :as => :test_sudo_downloads + match 'statistics/test_sudo' => 'downloads#test_sudo', :as => :test_sudo_downloads resources :categories do get :platforms, :on => :collection