add install script after composer install

This commit is contained in:
Nicolas Lœuillet
2015-01-21 14:45:39 +01:00
parent 00fcfd299b
commit 19875ef0da
16 changed files with 89 additions and 913 deletions

View File

@ -1,13 +1,13 @@
<?php
if (!file_exists(__DIR__ . '/config/config.inc.php')) {
die('wallabag seems to be not installed. Please execute ./bin/install before.');
}
// PHP 5.3 minimum
if (version_compare(PHP_VERSION, '5.3.3', '<')) {
die('This software require PHP 5.3.3 minimum');
}
// Short tags must be enabled for PHP < 5.4
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
if (! ini_get('short_open_tag')) {
die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
}