lib/engineyard-serverside/maintenance.rb in engineyard-serverside-2.6.7.pre1 vs lib/engineyard-serverside/maintenance.rb in engineyard-serverside-2.6.7.pre2

- old
+ new

@@ -69,16 +69,16 @@ shell.status "Enabling maintenance page." run "mkdir -p #{maintenance_page_dirname}" public_system_symlink_warning @up = true maintenance_page_html = File.read(source_path) - if maintenance_page_html.index("'") - #if the html contains an aprostophe it's probably custom coming from your app so will work on app slaves even if the serverside versions mistmatch - run "cp #{source_path} #{enabled_maintenance_page_pathname}" - else + if source_path == EY::Serverside::Paths::DEFAULT_MAINTENANCE_PAGE #run fans out to all app servers but the serverside version is only isntalled on the server being used to deploy #so if the serveside version being used isn't installed on a given app server the cp command would fail, but this echo will still work run "echo '#{maintenance_page_html}' > #{enabled_maintenance_page_pathname}" + else + #since other possible paths are in your app, cp should work + run "cp #{source_path} #{enabled_maintenance_page_pathname}" end end def disable shell.status "Removing maintenance page."