Debian Codegraph @

debian/oar-restful-api.postinst

raw
1 #! /bin/sh
2 set -e
3 #set -x
4
5 . /usr/share/debconf/confmodule
6 . /usr/lib/oar/setup/api.sh
7
8 PACKAGE=oar-restful-api
9
10 case "$1" in
11 configure)
12 api_setup
13 MSG="Please look at the README.Debian file of the package for instructions to finalize OAR API installation"
14 if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
15 . /usr/share/apache2/apache2-maintscript-helper
16 #apache2_invoke enconf oar-restful-api.conf || exit $?
17 apache2_msg info "$MSG"
18 else
19 echo "$MSG"
20 fi
21 # Remove very old config files
22 rm -f /etc/apache2/conf.d/oar-api.conf || true
23 rm -f /etc/apache2/conf.d/oar-restful-api.conf || true
24 ;;
25
26 abort-upgrade|abort-remove|abort-deconfigure)
27 ;;
28
29 *)
30 echo "postinst called with unknown argument \`$1'" >&2
31 exit 1
32 ;;
33 esac
34
35 #DEBHELPER#
36
37 exit 0
38
39