Test sudo options
This commit is contained in:
parent
c6e5ace271
commit
59a90e6136
|
@ -7,6 +7,7 @@
|
|||
#end
|
||||
|
||||
every 5.minutes do
|
||||
rake "sudo_test:projects"
|
||||
# runner "Download.rotate_nginx_log"
|
||||
runner "Download.parse_and_remove_nginx_log"
|
||||
end
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
namespace :sudo_test do
|
||||
desc "Test sudo from web"
|
||||
task :projects => :environment do
|
||||
system "sudo touch /root/sudo_#{Time.now.to_i}.txt"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue