From ee1cfa66c94245bd0113f4dc5ad5d1f4ab8afdf6 Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 18 Feb 2021 22:02:52 +0800 Subject: [PATCH] Fix bug. --- lib/tasks/create_site.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/create_site.rake b/lib/tasks/create_site.rake index 0c676b5..1138b2c 100644 --- a/lib/tasks/create_site.rake +++ b/lib/tasks/create_site.rake @@ -53,7 +53,7 @@ namespace :create_site do exec_ssh_command_by_sudo_for_create(ssh,"touch /etc/nginx/orbit_sites/#{args.site_name}") exec_ssh_command_by_sudo_for_create(ssh,"sh -c \"echo '#{nginx_setting_texts}' > /etc/nginx/orbit_sites/#{args.site_name}\"") update_infos("restarting nginx") - exec_ssh_command_by_sudo_for_create(ssh,"service nginx restart") + exec_ssh_command_by_sudo_for_create(ssh,"sudo -p 'sudo password:' service nginx restart") update_infos("finish restarting nginx") exec_ssh_command_by_sudo_for_create(ssh,"mkdir -p #{args.path}") update_infos("cloning orbit4-5 from #{args.git_url} to #{args.path}/#{args.site_name}")