| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
set -e
|
| 4 |
|
| 5 |
# summary of how this script can be called:
|
| 6 |
# * <postinst> `configure' <most-recently-configured-version>
|
| 7 |
# * <old-postinst> `abort-upgrade' <new version>
|
| 8 |
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
| 9 |
# <new-version>
|
| 10 |
# * <postinst> `abort-remove'
|
| 11 |
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
| 12 |
# <failed-install-package> <version> `removing'
|
| 13 |
# <conflicting-package> <version>
|
| 14 |
# for details, see http://www.debian.org/doc/debian-policy/ or
|
| 15 |
# the debian-policy package
|
| 16 |
|
| 17 |
|
| 18 |
case "$1" in
|
| 19 |
configure)
|
| 20 |
chown -R www-data:www-data /var/log/mobyle
|
| 21 |
chown -R www-data:www-data /var/lib/mobyle
|
| 22 |
a2enmod rewrite
|
| 23 |
a2enmod headers
|
| 24 |
service apache2 restart
|
| 25 |
;;
|
| 26 |
|
| 27 |
abort-upgrade|abort-remove|abort-deconfigure)
|
| 28 |
;;
|
| 29 |
|
| 30 |
*)
|
| 31 |
echo "postinst called with unknown argument \`$1'" >&2
|
| 32 |
exit 1
|
| 33 |
;;
|
| 34 |
esac
|
| 35 |
|
| 36 |
# dh_installdeb will replace this with shell code automatically
|
| 37 |
# generated by other debhelper scripts.
|
| 38 |
|
| 39 |
#DEBHELPER#
|
| 40 |
|
| 41 |
exit 0
|