Skip to content

Commit

Permalink
Dont overwrite APP_KEY if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
1day2die committed Feb 7, 2022
1 parent e9e539c commit d3f7e19
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ storage/invoices.zip
storage/app/public/logo.png
*vscode
- Kopie.env
public/install/logs.txt
Empty file modified bin/test.sh
100755 → 100644
Empty file.
Empty file modified bootstrap/cache/.gitignore
100755 → 100644
Empty file.
Empty file modified config/trustedproxy.php
100755 → 100644
Empty file.
6 changes: 5 additions & 1 deletion public/install/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@
#$logs .= run_console('composer install --no-dev --optimize-autoloader');
$logs .= run_console('php artisan migrate --seed --force');
$logs .= run_console('php artisan db:seed --class=ExampleItemsSeeder --force');
$logs .= run_console('php artisan key:generate --force');
if (strpos(getEnvironmentValue("APP_KEY"), 'base64') === false) {
$logs .= run_console('php artisan key:generate --force');
}else{
$logs .= "Key already exists. Skipping\n";
}
$logs .= run_console('php artisan storage:link');

$logsfile = fopen("logs.txt", "w") or die("Unable to open file!");
Expand Down
Empty file modified storage/app/.gitignore
100755 → 100644
Empty file.
Empty file modified storage/app/public/.gitignore
100755 → 100644
Empty file.
Empty file modified storage/framework/.gitignore
100755 → 100644
Empty file.
Empty file modified storage/framework/cache/.gitignore
100755 → 100644
Empty file.
Empty file modified storage/framework/cache/data/.gitignore
100755 → 100644
Empty file.
Empty file modified storage/framework/sessions/.gitignore
100755 → 100644
Empty file.
Empty file modified storage/framework/testing/.gitignore
100755 → 100644
Empty file.
Empty file modified storage/framework/views/.gitignore
100755 → 100644
Empty file.
Empty file modified storage/logs/.gitignore
100755 → 100644
Empty file.

0 comments on commit d3f7e19

Please sign in to comment.