source: llx-netinstall/trunk/fuentes/debian/llx-netinstall.postinst @ 2849

Last change on this file since 2849 was 810, checked in by hectorgh, 4 years ago

fixing postinst

File size: 526 bytes
Line 
1#!/bin/bash
2
3set -e
4case $1 in
5        configure)
6                if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
7                        . /usr/share/apache2/apache2-maintscript-helper
8                        apache2_invoke ensite preseed || true
9                fi
10
11                if [ ! -L  /var/www/preseed ]; then
12                        ln -s /usr/share/llx-netinstall/templates /var/www/preseed
13                fi
14                invoke-rc.d apache2 reload || true
15        ;;
16        abort-upgrade|abort-remove|abort-deconfigure)
17        ;;
18        *)
19                echo "postinst called with unknown argument \`$1'" >&2
20                exit 1
21        ;;
22esac
23
24#DEBHELPER#
25
26exit 0
27
Note: See TracBrowser for help on using the repository browser.