Fix script bug.
This commit is contained in:
parent
1b9609f43c
commit
be34085832
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue