mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
parent
4413e02488
commit
d027d436cf
1 changed files with 1 additions and 11 deletions
12
install.php
12
install.php
|
@ -124,10 +124,7 @@ function chmod_r(string $dir, int $dirPermissions, int $filePermissions): void
|
||||||
}
|
}
|
||||||
|
|
||||||
// Welcoming message
|
// Welcoming message
|
||||||
out("---------- TorrentPier Installer ----------", 'info');
|
out("- TorrentPier Installer\n", 'info');
|
||||||
out("Made with love for Humans!", 'info');
|
|
||||||
out("-------------------------------------------\n", 'info');
|
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
// Setting permissions
|
// Setting permissions
|
||||||
out('- Setting permissions for folders...', 'info');
|
out('- Setting permissions for folders...', 'info');
|
||||||
|
@ -135,7 +132,6 @@ chmod_r(ROOT . 'data', 0755, 0644);
|
||||||
chmod_r(ROOT . 'internal_data', 0755, 0644);
|
chmod_r(ROOT . 'internal_data', 0755, 0644);
|
||||||
chmod_r(ROOT . 'sitemap', 0755, 0644);
|
chmod_r(ROOT . 'sitemap', 0755, 0644);
|
||||||
out("- Permissions successfully applied!\n", 'success');
|
out("- Permissions successfully applied!\n", 'success');
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
// Check composer installation
|
// Check composer installation
|
||||||
if (!is_file(ROOT . 'vendor/autoload.php')) {
|
if (!is_file(ROOT . 'vendor/autoload.php')) {
|
||||||
|
@ -169,8 +165,6 @@ if (!is_file(ROOT . 'vendor/autoload.php')) {
|
||||||
out('- composer.phar not found', 'error');
|
out('- composer.phar not found', 'error');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Preparing ENV
|
// Preparing ENV
|
||||||
|
@ -181,8 +175,6 @@ if (is_file(ROOT . '.env.example') && !is_file(ROOT . '.env')) {
|
||||||
out('- Cannot create environment file', 'error');
|
out('- Cannot create environment file', 'error');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Editing ENV file
|
// Editing ENV file
|
||||||
|
@ -237,8 +229,6 @@ if (is_file(ROOT . '.env')) {
|
||||||
out('- Cannot save environment file', 'error');
|
out('- Cannot save environment file', 'error');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(1);
|
|
||||||
} else {
|
} else {
|
||||||
out('- Environment file not found', 'error');
|
out('- Environment file not found', 'error');
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue