#!/bin/sh ## ## drupal-setup ## # determine MySQL administrator username/password username=`grep "^user" @l_prefix@/etc/mysql/my.pwd |\ sed -e 's;^user[^=]*= *;;' -e 's; *$;;'` password=`grep "^password" @l_prefix@/etc/mysql/my.pwd |\ sed -e 's;^password[^=]*= *;;' -e 's; *$;;'` # create the MySQL database for Drupal @l_prefix@/bin/mysqladmin --user=$username --password=$password create drupal @l_prefix@/bin/mysql --user=$username --password=$password mysql <