Fix bug.
This commit is contained in:
parent
c2d4a6d9f3
commit
25eabb38e9
|
@ -12,7 +12,7 @@ user_pass="$6"
|
||||||
domain_escape=`echo $domain|sed 's/\./\\\./g'`;
|
domain_escape=`echo $domain|sed 's/\./\\\./g'`;
|
||||||
ssh_command="sshpass -p $pass ssh $user@$ip -p $port";
|
ssh_command="sshpass -p $pass ssh $user@$ip -p $port";
|
||||||
scp_command="sshpass -p $pass scp -r -P $port $user@$ip";
|
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 ''"
|
remote_sudo_command="echo $pass|sudo -S -p ''"
|
||||||
alias sudo_command="echo $user_pass|sudo -S -p ''"
|
alias sudo_command="echo $user_pass|sudo -S -p ''"
|
||||||
if [ -z "$(which sshpass)" ]; then
|
if [ -z "$(which sshpass)" ]; then
|
||||||
|
|
Loading…
Reference in New Issue