mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Check to make sure there's a .env file
While i was testing this, i noticed that it ran right by the .env check, even though i don't have a .env file at all. The script checks for a _bad_ .env, but not a missing one. Now it does
This commit is contained in:
parent
32605578dd
commit
2ee8639eaf
|
@ -55,6 +55,12 @@ echo "--------------------------------------------------------\n\n";
|
|||
|
||||
// Check the .env looks ok
|
||||
$env = file('.env');
|
||||
if (! $env){
|
||||
echo "\n!!!!!!!!!!!!!!!!!!!!!!!!!! .ENV FILE ERROR !!!!!!!!!!!!!!!!!!!!!!!!!!\n";
|
||||
echo "Your .env file doesn't seem to exist in this directory or isn't readable! Please look into that.\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$env_good = '';
|
||||
$env_bad = '';
|
||||
|
||||
|
|
Loading…
Reference in a new issue