Alternc  latest
Alternc logiel libre pour l'hébergement
alternc-api.postinst
Go to the documentation of this file.
1 #!/bin/bash -e
2 
3 
4 case "$1" in
5  configure)
6 
7  echo "Installing mysql table"
8  mysql --defaults-file=/etc/alternc/my.cnf \
9  </usr/share/alternc/api.sql || true
10 
11  # Refresh apache configuration
12  # configure /etc/alternc/templates/apache/httpd.conf
13  # configure /etc/alternc/templates/apache-ssl/httpd.conf
14 
15  echo -e "\033[31m**********************************************"
16  echo "* ALTERNC-API ACTION REQUESTED *"
17  echo "* *"
18  echo "* Please run alternc.install to fully deploy *"
19  echo "**********************************************"
20  echo -e "\033[0m"
21  ;;
22 
23  abort-upgrade|abort-remove|abort-deconfigure)
24  ;;
25 
26  *)
27  echo "postinst called with unknown argument \`$1'" >&2
28  exit 1
29  ;;
30 esac
31 
32 # dh_installdeb will replace this with shell code automatically
33 # generated by other debhelper scripts.
34 #DEBHELPER#
35 
36 # vim: et sw=4