~ubuntu-branches/ubuntu/precise/nginx/precise-proposed

« back to all changes in this revision

Viewing changes to debian/nginx-extras.postinst

  • Committer: Package Import Robot
  • Author(s): Thomas Ward, Thomas Ward, Iain Lane
  • Date: 2013-10-10 10:48:16 UTC
  • Revision ID: package-import@ubuntu.com-20131010104816-n95cmen4kp0y6260
Tags: 1.1.19-1ubuntu0.4
[ Thomas Ward ]
* Move postinst symlinking of default nginx config to nginx-common only.
  (closes LP: #1206878)

[ Iain Lane ]
* Take additional change from Debian patch to check sites-enabled and
  sites-available are directories before symlinking .../default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
set -e
3
3
 
4
4
case "$1" in
5
 
  configure)
6
 
    if [ -z $2 ] && [ ! -e /etc/nginx/sites-enabled/default ]; then
7
 
      ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
8
 
    fi
9
 
    ;;
10
 
 
11
 
  abort-upgrade|abort-remove|abort-deconfigure)
 
5
  abort-upgrade|abort-remove|abort-deconfigure|configure)
12
6
    ;;
13
7
 
14
8
  *)