Last change
on this file was 82, checked in by chronos, 7 years ago |
- Fixed: Wrong function call in postinst and postrm deb scripts.
|
-
Property svn:executable
set to
*
|
File size:
747 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # postinst script for estetistic
|
---|
3 |
|
---|
4 | apache_install() {
|
---|
5 | mkdir -p /etc/apache2/conf-available
|
---|
6 | ln -sf ../../estetistic/apache.conf /etc/apache2/conf-available/estetistic.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 estetistic
|
---|
13 | elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
|
---|
14 | [ -d /etc/apache2/conf.d/ ] && [ ! -L /etc/apache2/conf.d/estetistic.conf ] && ln -s ../conf-available/estetistic.conf /etc/apache2/conf.d/estetistic.conf
|
---|
15 | fi
|
---|
16 | }
|
---|
17 |
|
---|
18 | if [ "$1" = "configure" ]; then
|
---|
19 | apache_install $@
|
---|
20 | fi
|
---|
21 |
|
---|
22 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.