-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #601 from Kovah/dev
v1 Release
- Loading branch information
Showing
19 changed files
with
977 additions
and
830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use App\Models\Setting; | ||
use Illuminate\Console\Command; | ||
use Illuminate\Support\Facades\Cache; | ||
use Illuminate\Support\Facades\Log; | ||
|
||
class CompleteSetupCommand extends Command | ||
{ | ||
protected $signature = 'setup:complete'; | ||
|
||
protected $description = 'Use this command in case the setup cannot be completed automatically.'; | ||
|
||
public function handle() | ||
{ | ||
try { | ||
Setting::updateOrCreate( | ||
['key' => 'system_setup_completed'], | ||
['key' => 'system_setup_completed', 'value' => true] | ||
); | ||
Cache::forget('systemsettings'); | ||
} catch (\Exception $e) { | ||
$this->error('Could not complete the setup because of an error: ' . $e->getMessage()); | ||
$this->error('Check the log files for further details.'); | ||
Log::warning($e); | ||
return; | ||
} | ||
|
||
$this->info('Successfully marked the setup as completed. You can now visit the web interface.'); | ||
$this->line('Hint: If you install LinkAce with PostgreSQL or SQLite, use the <options=reverse>registeruser</> command now.'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.