diff --git a/config/tasks/deploy.rake b/config/tasks/deploy.rake index 2d8226f1..b66ed80a 100644 --- a/config/tasks/deploy.rake +++ b/config/tasks/deploy.rake @@ -112,7 +112,7 @@ namespace :fezzik do "-f Procfile > /dev/null" run_commands("cd #{release_path}", "bundle exec #{foreman_command}", - "sudo rm /etc/init/#{app}*.conf || true", + "sudo rm /etc/init/#{app}*.conf 2> /dev/null || true", "sudo mv upstart_scripts/* /etc/init", "rm -R upstart_scripts")