mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update install.php
This commit is contained in:
parent
d61a662238
commit
44cd523f37
1 changed files with 2 additions and 0 deletions
|
@ -356,6 +356,7 @@ if (!empty($DB_HOST) && !empty($DB_DATABASE) && !empty($DB_USERNAME)) {
|
||||||
|
|
||||||
if (isset($APP_ENV) && $APP_ENV === 'local') {
|
if (isset($APP_ENV) && $APP_ENV === 'local') {
|
||||||
if (!is_file(BB_ROOT . 'library/config.local.php')) {
|
if (!is_file(BB_ROOT . 'library/config.local.php')) {
|
||||||
|
echo "\n";
|
||||||
if (copy(BB_ROOT . 'library/config.php', BB_ROOT . 'library/config.local.php')) {
|
if (copy(BB_ROOT . 'library/config.php', BB_ROOT . 'library/config.local.php')) {
|
||||||
out('- Local configuration file created!', 'success');
|
out('- Local configuration file created!', 'success');
|
||||||
} else {
|
} else {
|
||||||
|
@ -363,6 +364,7 @@ if (!empty($DB_HOST) && !empty($DB_DATABASE) && !empty($DB_USERNAME)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
echo "\n";
|
||||||
if (rename(__FILE__, __FILE__ . '_' . hash('xxh128', time()))) {
|
if (rename(__FILE__, __FILE__ . '_' . hash('xxh128', time()))) {
|
||||||
out("- Installation file renamed!", 'success');
|
out("- Installation file renamed!", 'success');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue