From 2c28398827ed9be86e3a803a27bd54e366569ac9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 5 Sep 2016 18:12:37 +0200 Subject: install.php: Repurpose to dependency checker It never did any installation and being able to run it without having to delete the is_installed file is actually helpful when dependency requirements change. Signed-off-by: Florian Pritz --- install.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/install.php b/install.php index 2930de379..f8d2da2db 100644 --- a/install.php +++ b/install.php @@ -12,10 +12,6 @@ if (getenv("HOME") == "") { putenv('HOME='.FCPATH); } -if (file_exists(FCPATH."is_installed")) { - exit("already installed\n"); -} - $old_path = getenv("PATH"); putenv("PATH=$old_path:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"); @@ -82,14 +78,8 @@ foreach ($mod_groups as $function => $mods) { if ($errors != "") { - echo nl2br("Errors occured:\n"); - echo nl2br($errors); + echo "Errors occured:\n"; + echo $errors; } else { -// TODO: Make this an actual installer - file_put_contents(FCPATH."is_installed", "true"); - echo nl2br("Tests completed.\n" - ."The following steps remain:\n" - ." - copy the files from ./application/config/example/ to ./application/config/ and edit them to suit your setup\n" - ." - the database will be set up automatically\n" - ); + echo "Dependency checks completed sucessfully.\n"; } -- cgit v1.2.3-24-g4f1b