Changeset 2170
- Timestamp:
- 04/24/08 17:43:08 (4 months ago)
- Files:
-
- alternc-webalizer/trunk/alternc-webalizer (modified) (3 diffs)
- alternc-webalizer/trunk/debian/postinst (modified) (1 diff)
- alternc-webalizer/trunk/debian/postrm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc-webalizer/trunk/alternc-webalizer
r1492 r2170 1 1 #!/bin/sh 2 . /etc/alternc/local.sh3 2 4 3 if [ -e /etc/alternc/webalizer.conf ] … … 10 9 then 11 10 ACCESSLOG="/var/log/apache/access.log.1" 12 fi13 14 if [ -z "$MYSQL_HOST" ]15 then16 MYSQL_HOST="localhost"17 11 fi 18 12 … … 54 48 55 49 # Launch the stat 56 mysql - h"$MYSQL_HOST" -p"$MYSQL_PASS" -u"$MYSQL_USER" "$MYSQL_DATABASE"-B -e "SELECT lang,hostname,dir,uid FROM stats" |grep -v "^lang" | dostat50 mysql --defaults-file=/etc/alternc/my.cnf -B -e "SELECT lang,hostname,dir,uid FROM stats" |grep -v "^lang" | dostat 57 51 58 52 cleanup alternc-webalizer/trunk/debian/postinst
r2141 r2170 23 23 24 24 # 1st, configure the table if required 25 mysql - h"$MYSQL_HOST" -p"$MYSQL_PASS" -u"$MYSQL_USER" "$MYSQL_DATABASE"</usr/share/alternc/webalizer.sql || true25 mysql --defaults-file=/etc/alternc/my.cnf </usr/share/alternc/webalizer.sql || true 26 26 27 27 # Then, configure the quota for "stats" alternc-webalizer/trunk/debian/postrm
r1512 r2170 17 17 if [ -e "$CONFIGFILE" -a -x "/usr/bin/mysql" ]; then 18 18 . "$CONFIGFILE" 19 mysql -f -u"$MYSQL_USER" -p"$MYSQL_PASS" -h"$MYSQL_HOST" \ 20 "$MYSQL_DATABASE" -e "DROP TABLE IF EXISTS stats;" 19 mysql -f --defaults-file=/etc/alternc/my.cnf -e "DROP TABLE IF EXISTS stats;" 21 20 fi 22 21 rm -rf /var/cache/webalizer
