From 140f5a4939f855ef61e765486e6db98a6eec1a61 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Tue, 19 May 2015 09:38:38 -0700 Subject: [PATCH] fix lintball from #1198 --- debian/preinst | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/debian/preinst b/debian/preinst index 39a593ff0..e8c0bf2c0 100755 --- a/debian/preinst +++ b/debian/preinst @@ -17,13 +17,16 @@ case "$1" in rm -f $NGINX_CONF touch $NGINX_CONF - echo 'upstream dokku-installer { server 127.0.0.1:2000; }' >> $NGINX_CONF - echo 'server {' >> $NGINX_CONF - echo ' listen 80;' >> $NGINX_CONF - echo ' location / {' >> $NGINX_CONF - echo ' proxy_pass http://dokku-installer;' >> $NGINX_CONF - echo ' }' >> $NGINX_CONF - echo '}' >> $NGINX_CONF + + { + echo 'upstream dokku-installer { server 127.0.0.1:2000; }' + echo 'server {' + echo ' listen 80;' + echo ' location / {' + echo ' proxy_pass http://dokku-installer;' + echo ' }' + echo '}' + } >> $NGINX_CONF rm -f /etc/nginx/sites-enabled/* service nginx reload