Fix test sudo action

This commit is contained in:
konstantin.grabar 2011-11-03 15:16:17 +04:00
parent d9a03013b4
commit 4b4df620ff
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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