root/controlies/trunk/debian/postinst @ 471
162 | jredrejo | #!/bin/sh
|
|
169 | jredrejo | # postinst script for controlies
|
|
162 | jredrejo | #
|
|
# see: dh_installdeb(1)
|
|||
set -e
|
|||
case "$1" in
|
|||
configure)
|
|||
chown -R www-data:www-data /var/web2py
|
|||
342 | manumora | chmod +x /etc/init.d/controlies
|
|
340 | manumora | a2enmod ssl
|
|
a2enmod wsgi
|
|||
a2ensite default-ssl
|
|||
service apache2 --full-restart
|
|||
341 | manumora | /etc/init.d/controlies restart
|
|
162 | jredrejo | ;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|||
;;
|
|||
*)
|
|||
echo "postinst called with unknown argument \`$1'" >&2
|
|||
exit 1
|
|||
;;
|
|||
esac
|
|||
# dh_installdeb will replace this with shell code automatically
|
|||
# generated by other debhelper scripts.
|
|||
#DEBHELPER#
|
|||
exit 0
|