Skip to content

A free, self-hostable news aggregator…

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

Alexandre Alapetite37957d45b243
diff --git a/cli/do-install.php b/cli/do-install.php
index 4cd7597fe..143ca5c3e 100755
--- a/cli/do-install.php
+++ b/cli/do-install.php
@@ -3,6 +3,10 @@
require('_cli.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(
'environment:',
'base_url:',