mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 06:35:45 -07:00
Update install.php
This commit is contained in:
parent
ccfcfed7cd
commit
1822df3771
1 changed files with 8 additions and 2 deletions
10
install.php
10
install.php
|
@ -417,9 +417,15 @@ if (!empty($DB_HOST) && !empty($DB_DATABASE) && !empty($DB_USERNAME)) {
|
||||||
|
|
||||||
// Cleanup...
|
// Cleanup...
|
||||||
if (is_file(BB_ROOT . '_cleanup.php')) {
|
if (is_file(BB_ROOT . '_cleanup.php')) {
|
||||||
out("\n--- Finishing... ---\n", 'info');
|
out("\n--- Finishing installation ---\n", 'info');
|
||||||
echo 'Are you sure want to re-install TorrentPier? [y/N]: ';
|
out("The cleanup process will remove:");
|
||||||
|
out(" - Development documentation (README, CHANGELOG)");
|
||||||
|
out(" - Git configuration files");
|
||||||
|
out(" - CI/CD pipelines and code analysis tools");
|
||||||
|
out(" - Translation and contribution guidelines");
|
||||||
|
echo 'Do you want to delete these files permanently? [y/N]: ';
|
||||||
if (str_starts_with(mb_strtolower(trim(readline())), 'y')) {
|
if (str_starts_with(mb_strtolower(trim(readline())), 'y')) {
|
||||||
|
out("\n- Cleanup...", 'info');
|
||||||
require_once BB_ROOT . '_cleanup.php';
|
require_once BB_ROOT . '_cleanup.php';
|
||||||
unlink(BB_ROOT . '_cleanup.php');
|
unlink(BB_ROOT . '_cleanup.php');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue