Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix formatting of success messages

The success messages for enabling/disabling a site were inconsistent,
and the message after enabling a site was missing a space. This commit
fixes both of these minor issues.
  • Loading branch information...
commit 1f83cdf0ec4422be1ce520a0d1fb893495437342 1 parent 77bf957
@cdzombak cdzombak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 nginx_ensite
View
4 nginx_ensite
@@ -86,7 +86,7 @@ case $ACTION in
echo "Testing nginx configuration..."
$NGINX -t && STATUS=0
if [ $STATUS ]; then
- echo -n "site $1 has been enabled."
+ echo -n "Site $1 has been enabled. "
echo "Run /etc/init.d/nginx reload to apply the changes."
exit 0
else
@@ -100,7 +100,7 @@ case $ACTION in
DISABLE)
if [ -h $SITE_ENABLED ]; then
rm $SITE_ENABLED
- echo "Site $1 has been disabled."
+ echo -n "Site $1 has been disabled. "
echo "Run /etc/init.d/nginx reload to apply the changes."
exit 0
else
Please sign in to comment.
Something went wrong with that request. Please try again.