lib/engineyard-serverside/maintenance.rb in engineyard-serverside-2.6.8 vs lib/engineyard-serverside/maintenance.rb in engineyard-serverside-2.6.9pre1
- old
+ new
@@ -68,18 +68,10 @@
def enable
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 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
+ run "cp #{source_path} #{enabled_maintenance_page_pathname}"
end
def disable
shell.status "Removing maintenance page."
@up = false