From 0e5cca951eafa6193153f171b89a3bbf255152ef Mon Sep 17 00:00:00 2001 From: Zertrin Date: Mon, 28 Apr 2014 23:01:04 +0200 Subject: [PATCH] No more needed to delete install.php, now redirect to index.php if initial install already performed Signed-off-by: Jerome Jutteau --- install.php | 5 +++++ lib/functions.php | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/install.php b/install.php index d8e5fdf..87eaf60 100755 --- a/install.php +++ b/install.php @@ -134,6 +134,11 @@ if (!file_exists (JIRAFEAU_CFG)) exit; } } +else +{ + header('Location: index.php'); + exit; +} if (!is_writable (JIRAFEAU_CFG) && !@chmod (JIRAFEAU_CFG, '0666')) { diff --git a/lib/functions.php b/lib/functions.php index 15c7a3e..bc119a3 100755 --- a/lib/functions.php +++ b/lib/functions.php @@ -515,12 +515,6 @@ function check_errors () if (!is_writable (VAR_BLOCK)) add_error (t('The block directory is not writable!'), VAR_BLOCK); - - /* Check if the install.php script is still in the directory. */ - if (file_exists (JIRAFEAU_ROOT . 'install.php')) - add_error (t('Installer script still present'), - t('Please make sure to delete the installer script ' . - '"install.php" before continuing.')); } /** -- 2.34.1