Permalink
Browse files

Check for broken FreeBSD 9.1 during installation.

  • Loading branch information...
1 parent a7c6a27 commit e3612124fd4708a6a3df76c8fe27319789e14214 @FooBarWidget FooBarWidget committed Jun 8, 2013
@@ -93,6 +93,7 @@ class Installer < PhusionPassenger::AbstractInstaller
show_welcome_screen
check_dependencies || exit(1)
check_whether_apache_uses_compatible_mpm
+ check_whether_os_is_broken
check_whether_system_has_enough_ram
check_write_permission_to_passenger_root || exit(1)
if install_apache2_module
@@ -78,6 +78,7 @@ class Installer < PhusionPassenger::AbstractInstaller
show_welcome_screen
check_dependencies || exit(1)
check_whether_we_can_write_to(PhusionPassenger.source_root) || exit(1)
+ check_whether_os_is_broken
check_whether_system_has_enough_ram
download_and_install = should_we_download_and_install_nginx_automatically?
@@ -25,6 +25,7 @@
require 'phusion_passenger/constants'
require 'phusion_passenger/console_text_template'
require 'phusion_passenger/platform_info'
+require 'phusion_passenger/platform_info/operating_system'
require 'phusion_passenger/utils/ansi_colors'
# IMPORTANT: do not directly or indirectly require native_support; we can't compile
@@ -157,6 +158,14 @@ def check_dependencies(show_new_screen = true)
end
end
+ def check_whether_os_is_broken
+ if PlatformInfo.os_name == "freebsd9" && `uname -r` =~ /^9\.1-/
+ new_screen
+ render_template 'installer_common/freebsd9_broken_cxx_runtime'
+ wait
+ end
+ end
+
def check_whether_system_has_enough_ram(required = 1024)
begin
meminfo = File.read("/proc/meminfo")
@@ -119,6 +119,7 @@ def run_steps
show_welcome_screen
end
check_dependencies(false) || exit(1)
+ check_whether_os_is_broken
check_whether_system_has_enough_ram
puts

0 comments on commit e361212

Please sign in to comment.