Alternc  latest
Alternc logiel libre pour l'hébergement
alternc-ssl.postinst
Go to the documentation of this file.
1 #!/bin/bash -e
2 
3 . /usr/share/debconf/confmodule
4 
5 CONFIGFILE="/etc/alternc/local.sh"
6 
7 case "$1" in
8  configure)
9  . "$CONFIGFILE"
10 
11  # Then, configure the quota for "ssl"
12  /usr/lib/alternc/quota_init ssl 0
13 
14  echo "Installing mysql table"
15  mysql --defaults-file=/etc/alternc/my.cnf -f < /usr/share/alternc/install/ssl.sql || true
16 
17  echo "installing required apache modules"
18  a2enmod ssl
19 
20  echo "$2" >/var/lib/alternc/backups/alternc-ssl-lastversion
21 
22  echo -e "\033[31m**********************************************"
23  echo "* *"
24  echo "* ALTERNC-SSL ACTION REQUESTED *"
25  echo "* *"
26  echo "* Please run alternc.install to fully deploy *"
27  echo "* Then change your quota to activate SSL Cert*"
28  echo "* *"
29  echo "**********************************************"
30  echo -e "\033[0m"
31  ;;
32 
33  abort-upgrade|abort-remove|abort-deconfigure)
34  ;;
35 
36  *)
37  echo "postinst called with unknown argument \`$1'" >&2
38  exit 1
39  ;;
40 esac
41 
42 # dh_installdeb will replace this with shell code automatically
43 # generated by other debhelper scripts.
44 #DEBHELPER#
45 
46 # vim: et sw=4