lib/negroku/tasks/nginx.rb in negroku-1.1.6 vs lib/negroku/tasks/nginx.rb in negroku-1.1.7

- old
+ new

@@ -44,11 +44,11 @@ config = ERB.new(File.read(config_file)).result(binding) put config, "/tmp/nginx.conf" else template "nginx.erb", "/tmp/nginx.conf" end - run "#{sudo} mv /tmp/nginx.conf /etc/nginx/sites-available/#{fetch(:application)}" - run "#{sudo} ln -nfs /etc/nginx/sites-available/#{fetch(:application)} /etc/nginx/sites-enabled/#{fetch(:application)}" + run "mv /tmp/nginx.conf /etc/nginx/sites-available/#{fetch(:application)}" + run "ln -nfs /etc/nginx/sites-available/#{fetch(:application)} /etc/nginx/sites-enabled/#{fetch(:application)}" run "mkdir -p /home/#{fetch(:user)}/log" reload end %w[start stop restart reload].each do |command|