source: trunk/Install/deb/debian/postinst

Last change on this file was 33, checked in by chronos, 4 years ago
  • Added: Files needed for Debian package creation
  • Property svn:executable set to *
File size: 763 bytes
Line 
1#!/bin/sh
2# postinst script for teribear
3
4apache_install() {
5 mkdir -p /etc/apache2/conf-available
6 ln -sf ../../teribear/apache.conf /etc/apache2/conf-available/teribear.conf
7
8 COMMON_STATE=$(dpkg-query -f '${Status}' -W 'apache2.2-common' 2>/dev/null | awk '{print $3}' || true)
9
10 if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
11 . /usr/share/apache2/apache2-maintscript-helper
12 apache2_invoke enconf teribear
13 elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
14 [ -d /etc/apache2/conf.d/ ] && [ ! -L /etc/apache2/conf.d/teribear.conf ] && ln -s ../conf-available/teribear.conf /etc/apache2/conf.d/teribear.conf
15 fi
16 apache2_invoke enmod rewrite
17}
18
19if [ "$1" = "configure" ]; then
20 apache_install $@
21fi
22
23exit 0
Note: See TracBrowser for help on using the repository browser.