diff --git a/doc/htdocs/deploy.html b/doc/htdocs/deploy.html
index 555b5f14..8d24acde 100644
--- a/doc/htdocs/deploy.html
+++ b/doc/htdocs/deploy.html
@@ -152,7 +152,7 @@ PID=/var/run/gunicorn.pid
APP=main:application
-if [ -f $PID ]; then rm $PID fi
+if [ -f $PID ]; then rm $PID; fi
cd $ROOT
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
diff --git a/doc/site/deploy.rst b/doc/site/deploy.rst
index a2660484..2ba07dac 100644
--- a/doc/site/deploy.rst
+++ b/doc/site/deploy.rst
@@ -137,9 +137,9 @@ An `example service`_ definition::
PID=/var/run/gunicorn.pid
APP=main:application
-
- if [ -f $PID ]; then rm $PID fi
-
+
+ if [ -f $PID ]; then rm $PID; fi
+
cd $ROOT
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP