Browse Source

Allows do-install.php only if data/do-install.txt exists

https://github.com/FreshRSS/FreshRSS/issues/1449
Alexandre Alapetite 9 years ago
parent
commit
37957d45b2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cli/do-install.php

+ 4 - 0
cli/do-install.php

@@ -3,6 +3,10 @@
 require('_cli.php');
 require('_cli.php');
 require(LIB_PATH . '/lib_install.php');
 require(LIB_PATH . '/lib_install.php');
 
 
+if (!file_exists(DATA_PATH . '/do-install.txt')) {
+	fail('FreshRSS looks to be already installed! Please use `./cli/reconfigure.php` instead.');
+}
+
 $params = array(
 $params = array(
 		'environment:',
 		'environment:',
 		'base_url:',
 		'base_url:',