diff --git a/move_site.sh b/move_site.sh index 50aee3f..60b1485 100644 --- a/move_site.sh +++ b/move_site.sh @@ -13,7 +13,7 @@ user_pass="$6" domain_escape=`echo $domain|sed 's/\./\\\./g'`; ssh_command="sshpass -p $pass ssh $user@$ip -p $port"; scp_command="sshpass -p $pass scp -r -P $port $user@$ip"; -nginx_file=`$ssh_command "grep -e $'\s'$domain_escape' /etc/nginx/orbit_sites/* -l"`; +nginx_file=`$ssh_command "grep -e $'\s''$domain_escape' /etc/nginx/orbit_sites/* -l"`; remote_sudo_command="echo $pass|sudo -S -p ''" alias sudo_command="echo $user_pass|sudo -S -p ''" if [ -z "$(which sshpass)" ]; then diff --git a/move_site_interactive.sh b/move_site_interactive.sh index e40f816..537146f 100644 --- a/move_site_interactive.sh +++ b/move_site_interactive.sh @@ -14,7 +14,7 @@ read -r user_pass; domain_escape=`echo $domain|sed 's/\./\\\./g'`; ssh_command="sshpass -p $pass ssh $user@$ip -p $port"; scp_command="sshpass -p $pass scp -r -P $port $user@$ip"; -nginx_file=`$ssh_command "grep -e $'\s'$domain_escape' /etc/nginx/orbit_sites/* -l"`; +nginx_file=`$ssh_command "grep -e $'\s''$domain_escape' /etc/nginx/orbit_sites/* -l"`; remote_sudo_command="echo $pass|sudo -S -p ''" alias sudo_command="echo $user_pass|sudo -S -p ''" if [ -z "$(which sshpass)" ]; then