source: trunk/debian/postinst @ 1455

Revision 1455, 1007 bytes checked in by anonymous, 9 years ago (diff)

typo

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
RevLine 
[1446]1#!/bin/sh -e
2
3# Debian alternc-webalizer postinst
4# Benjamin Sonntag <benjamin@alternc.org>
5
6# Uses debconf
7. /usr/share/debconf/confmodule
8# Uses AlternC.conf
[1448]9if [ -x /etc/alternc/local.sh ] 
10then
11    . /etc/alternc/local.sh
12fi
[1446]13
14case "$1" in
15configure)
16
17    # 1st, configure the table if required
18    mysql -h"$MYSQL_HOST" -p"$MYSQL_PASS" -u"$MYSQL_USER" "$MYSQL_DATABASE" </usr/share/alternc/webalizer.sql
19
20    # Then, configure the quota for "stats"
21    db_get alternc-webalizer/quota_create_ask
[1455]22    /usr/share/alternc/quota_init stats $RET
[1454]23
24    # Compile the po files :
25    /usr/lib/alternc/dopo.sh
[1446]26   
27    # Finally, add this module to the AlternC's menu :
[1448]28    if [ -z `grep menu_stats.php /var/alternc/bureau/admin/menulist.txt` ] 
29    then
[1446]30        echo "menu_stats.php" >>/var/alternc/bureau/admin/menulist.txt
31    fi
32
33    ;;
34
35abort-upgrade)
36    exit 0
37    ;;
38
39abort-remove|abort-deconfigure)
40    exit 0
41    ;;
42
43*)
[1447]44    echo "postinst called with unknown argument '$1'" >&2
[1446]45    exit 1
46    ;;
47esac
48
49exit 0
Note: See TracBrowser for help on using the repository browser.