소스 검색

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

https://github.com/FreshRSS/FreshRSS/issues/1449
Alexandre Alapetite 9 년 전
부모
커밋
37957d45b2
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      cli/do-install.php

+ 4 - 0
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:',