Fix test sudo action
This commit is contained in:
parent
d9a03013b4
commit
4b4df620ff
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue