Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- someuser ALL=NOPASSWD: /etc/init.d/apache2
- $ sudo ls
- [sudo] password for someuser:
- Sorry, user someuser is not allowed to execute '/bin/ls' as root on ...
- namespace :deploy do
- desc "Start the Thin processes"
- task :start do
- run "cd #{current_path} && bundle exec sudo thin start -C /etc/thin/dankit.yml"
- end
- desc "Stop the Thin processes"
- task :stop do
- run "cd #{current_path} && bundle exec sudo thin stop -C /etc/thin/dankit.yml"
- end
- desc "Restart the Thin processes"
- task :restart do
- run "cd #{current_path} && bundle exec sudo thin restart -C /etc/thin/dankit.yml"
- end
- end
- namespace :deploy do
- desc "Start the Thin processes"
- task :start do
- run "cd #{current_path} && bundle exec sudo thin start -C /etc/thin/dankit.yml"
- end
- desc "Stop the Thin processes"
- task :stop do
- run "cd #{current_path} && bundle exec sudo thin stop -C /etc/thin/dankit.yml"
- end
- desc "Restart the Thin processes"
- task :restart do
- run "cd #{current_path} && bundle exec sudo thin restart -C /etc/thin/dankit.yml"
- end
- end
Add Comment
Please, Sign In to add comment