LPS-33303 Failed to publish the staging site to live.

http://issues.liferay.com/browse/LPS-33303

Reverted changes from LPS-32277 because of regressions.