diff --git a/.gitignore b/.gitignore index 57290b7a..4565559a 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ storage/invoices.zip storage/app/public/logo.png *vscode - Kopie.env +public/install/logs.txt diff --git a/bin/test.sh b/bin/test.sh old mode 100755 new mode 100644 diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore old mode 100755 new mode 100644 diff --git a/config/trustedproxy.php b/config/trustedproxy.php old mode 100755 new mode 100644 diff --git a/public/install/forms.php b/public/install/forms.php index b6cba6ac..8b6dbf01 100644 --- a/public/install/forms.php +++ b/public/install/forms.php @@ -71,7 +71,11 @@ if (isset($_POST['feedDB'])) { #$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!"); diff --git a/storage/app/.gitignore b/storage/app/.gitignore old mode 100755 new mode 100644 diff --git a/storage/app/public/.gitignore b/storage/app/public/.gitignore old mode 100755 new mode 100644 diff --git a/storage/framework/.gitignore b/storage/framework/.gitignore old mode 100755 new mode 100644 diff --git a/storage/framework/cache/.gitignore b/storage/framework/cache/.gitignore old mode 100755 new mode 100644 diff --git a/storage/framework/cache/data/.gitignore b/storage/framework/cache/data/.gitignore old mode 100755 new mode 100644 diff --git a/storage/framework/sessions/.gitignore b/storage/framework/sessions/.gitignore old mode 100755 new mode 100644 diff --git a/storage/framework/testing/.gitignore b/storage/framework/testing/.gitignore old mode 100755 new mode 100644 diff --git a/storage/framework/views/.gitignore b/storage/framework/views/.gitignore old mode 100755 new mode 100644 diff --git a/storage/logs/.gitignore b/storage/logs/.gitignore old mode 100755 new mode 100644