4
4
for site in /etc/drupal/5/sites/* ; do
5
7
for file in $site/baseurl.php $site/settings.php; do
6
8
[ -f "$file" ] && BASE_URL=`grep '^$base_url' $file | cut -d"'" -f2`
7
9
[ "X$BASE_URL" != "X" ] && break
9
12
if [ "X$BASE_URL" = "X" ] ; then
10
13
BASE_URL='http://localhost/drupal5'