diff options
Diffstat (limited to 'install')
-rw-r--r-- | install/ElggInstaller.php | 7 | ||||
-rw-r--r-- | install/languages/en.php | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php index 900ab6fb0..a09657f7e 100644 --- a/install/ElggInstaller.php +++ b/install/ElggInstaller.php @@ -1258,6 +1258,13 @@ class ElggInstaller { } // check that data root is writable + if (!file_exists($submissionVars['dataroot'])) { + $msg = elgg_echo('install:error:datadirectoryexists', array($submissionVars['dataroot'])); + register_error($msg); + return FALSE; + } + + // check that data root is writable if (!is_writable($submissionVars['dataroot'])) { $msg = elgg_echo('install:error:writedatadirectory', array($submissionVars['dataroot'])); register_error($msg); diff --git a/install/languages/en.php b/install/languages/en.php index 73a862cd0..80716069d 100644 --- a/install/languages/en.php +++ b/install/languages/en.php @@ -126,6 +126,7 @@ If you are ready to proceed, click the Next button.", 'install:error:readsettingsphp' => 'Unable to read engine/settings.example.php', 'install:error:writesettingphp' => 'Unable to write engine/settings.php', 'install:error:requiredfield' => '%s is required', + 'install:error:datadirectoryexists' => 'Your data directory %s does not exist.', 'install:error:writedatadirectory' => 'Your data directory %s is not writable by the web server.', 'install:error:locationdatadirectory' => 'Your data directory %s must be outside of your install path for security.', 'install:error:emailaddress' => '%s is not a valid email address', |