From 5e6fdc467ca3e54b84ca902a4ee81a8e592e474c Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Thu, 13 Jun 2013 18:07:19 +0100 Subject: [PATCH] Check to see if we can access the website at the configured CONST_Website_BaseURL --- utils/setup.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/setup.php b/utils/setup.php index 081efd0d..f2feeadb 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -635,6 +635,13 @@ @symlink(CONST_BasePath.'/website/js', $sTargetDir.'/js'); @symlink(CONST_BasePath.'/website/css', $sTargetDir.'/css'); echo "Symlinks created\n"; + + $sTestFile = @file_get_contents(CONST_Website_BaseURL.'js/tiles.js'); + if (!$sTestFile) + { + echo "\nWARNING: Unable to access the website at ".CONST_Website_BaseURL."\n"; + echo "You may want to update settings/local.php with @define('CONST_Website_BaseURL', 'http://[HOST]/[PATH]/');\n"; + } } if (!$bDidSomething)