summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-05 18:12:37 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-09-19 21:41:31 +0200
commit2c28398827ed9be86e3a803a27bd54e366569ac9 (patch)
tree9c3583a6ff97dd187a68ea36ac4b2e69ea59f8b6
parent5dfa31be9c34f6099b10e714f5620b3755f9747c (diff)
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 <bluewind@xinu.at>
-rw-r--r--install.php16
1 files 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";
}