Skip to content

Commit

Permalink
Merge pull request #8 from aseques/debian_default
Browse files Browse the repository at this point in the history
* Fix disabling the default config on debian.
  • Loading branch information
perusio committed Feb 5, 2015
2 parents 8e744ac + a8e342d commit ecd5482
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx_ensite
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ case $ACTION in
fi
;;
DISABLE)
#On debian the default is enabled as default, not 000-default
if [ "$1" = "default" ] ; then
if [ -h "$ENABLED_SITES_PATH/default" ] ; then
SITE_ENABLED="$ENABLED_SITES_PATH/default"
fi
fi
if [ -h $SITE_ENABLED ]; then
rm $SITE_ENABLED
echo -n "Site $1 has been disabled. "
Expand Down

0 comments on commit ecd5482

Please sign in to comment.