This commit is contained in:
BoHung Chiu 2023-02-23 13:34:50 +08:00
parent eca05fa84d
commit c85989b0dd
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ namespace :create_site do
gemdir = ssh.exec!("#{rvm_path} gemdir").to_s
break if !gemdir.to_s.include?("No such file or directory")
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
if gemdir.include?("No such file or directory")
update_infos("please connect your admin to install rvm on #{args.ip}")