diff --git a/config/schedule.rb b/config/schedule.rb index 43eebf3f5..570fab94a 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -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 diff --git a/lib/tasks/sudo_test.rake b/lib/tasks/sudo_test.rake new file mode 100644 index 000000000..9f3791971 --- /dev/null +++ b/lib/tasks/sudo_test.rake @@ -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 \ No newline at end of file