|
Boost-Commit : |
From: grafik_at_[hidden]
Date: 2007-05-26 16:12:32
Author: grafik
Date: 2007-05-26 16:12:26 EDT (Sat, 26 May 2007)
New Revision: 4286
URL: http://svn.boost.org/trac/boost/changeset/4286
Log:
Added:
website/public_html/beta/admin/update-phpmyadmin.sh
Added: website/public_html/beta/admin/update-phpmyadmin.sh
==============================================================================
--- (empty file)
+++ website/public_html/beta/admin/update-phpmyadmin.sh 2007-05-26 16:12:26 EDT (Sat, 26 May 2007)
@@ -0,0 +1,37 @@
+#!/bin/sh
+set -e
+
+PHPMYADMIN_VERSION='2.10.1'
+
+phpmyadmin="phpMyAdmin-$PHPMYADMIN_VERSION-all-languages"
+
+##
+# Fetch all the parts, and extract.
+# - phpMyAdmin - http://www.phpmyadmin.net/
+##
+wget -N "http://prdownloads.sourceforge.net/phpmyadmin/${phpmyadmin}.tar.bz2"
+if test -e "${phpmyadmin}.tar.bz2" ; then
+ rm -rf "${phpmyadmin}"
+ bunzip2 -c "${phpmyadmin}.tar.bz2" | tar xvf -
+else
+ exit 1
+fi
+
+##
+# phpMyAdmin...
+##
+cd "${phpmyadmin}"
+blowfish_secret=`date | md5sum | head -c 32`
+cat - >>config.inc.php <<PHP
+<?php
+\$cfg['PmaAbsoluteUri'] = 'http://beta.boost.org/admin/db/';
+\$cfg['blowfish_secret'] = '$blowfish_secret';
+\$i = 0;
+\$i++;
+\$cfg['Servers'][\$i] = \$cfg['Servers'][0];
+\$cfg['Servers'][\$i]['host'] = 'localhost';
+\$cfg['Servers'][\$i]['auth_type'] = 'http';
+?>
+PHP
+rm -f "phpMyAdmin"
+ln -s "${phpmyadmin}" "phpMyAdmin"
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk