Added passenger support. Partialy 1

This commit is contained in:
Alexey Berezhok
2024-12-03 21:44:39 +03:00
parent 92f77aceca
commit d0da95dfc5
97 changed files with 5316 additions and 31 deletions

View File

@@ -0,0 +1,16 @@
#!/opt/brepo/ruby33/bin/ruby
def load_ruby_options_defaults
hestiacp_ruby_func_path = "/usr/local/hestia/func_ruby"
$LOAD_PATH.unshift hestiacp_ruby_func_path
hestiacp_ruby_gem_version = "3.3.0"
Gem.paths = {
"GEM_HOME" => "#{hestiacp_ruby_func_path}/gems/ruby/#{hestiacp_ruby_gem_version}",
"GEM_PATH" => "#{hestiacp_ruby_func_path}/gems/ruby/#{hestiacp_ruby_gem_version}",
}
end
def load_hestia_default_path_from_env
return ENV["HESTIA"] if ENV.key? "HESTIA"
"/usr/local/hestia"
end