diff --git a/custom/totvs.zsh b/custom/totvs.zsh
index 9ef5fd641de56f18c2aeb6482470f458d25710d8..e9924c147af82333a939c211caf87e561bd7664d 100644
--- a/custom/totvs.zsh
+++ b/custom/totvs.zsh
@@ -36,7 +36,7 @@ ecmbuild() {
 	cd $VOLDEMORT/wcm && mvncie
 	cd $ECM/ecm/wecmpackage && mvncie
 	cd $VOLDEMORT/ecm && mvncie
-	if [[ $INSTALLER -eq 'n' ]]; then
+	if [[ $INSTALLER -eq 'y' ]]; then
 		cd $VOLDEMORT/ecm/installer
 		mvnci -am -Drun=installer -DLinux64=true -DappServer=jboss
 	else
@@ -68,7 +68,8 @@ goecm() {
 	echo "serious business here. let's have a coffee.."
 	ecmstop
 	ecmclean
-	ecmbuild && ecmup && ecmstart
+	ecmup
+	ecmbuild && ecmstart
 }