Fix bug.
This commit is contained in:
parent
eca05fa84d
commit
c85989b0dd
|
@ -61,6 +61,10 @@ namespace :create_site do
|
||||||
gemdir = ssh.exec!("#{rvm_path} gemdir").to_s
|
gemdir = ssh.exec!("#{rvm_path} gemdir").to_s
|
||||||
break if !gemdir.to_s.include?("No such file or directory")
|
break if !gemdir.to_s.include?("No such file or directory")
|
||||||
end
|
end
|
||||||
|
if gemdir.include?("No such file or directory")
|
||||||
|
rvm_path = "/usr/share/rvm/bin/rvm"
|
||||||
|
gemdir = ssh.exec!("#{rvm_path} gemdir").to_s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if gemdir.include?("No such file or directory")
|
if gemdir.include?("No such file or directory")
|
||||||
update_infos("please connect your admin to install rvm on #{args.ip}")
|
update_infos("please connect your admin to install rvm on #{args.ip}")
|
||||||
|
|
Loading…
Reference in New Issue