mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-02 20:27:05 +01:00
Skipping installer when instaled for docker
This commit is contained in:
parent
4adf239c8e
commit
995ff893c7
@ -6,7 +6,13 @@
|
||||
|
||||
@if($_SERVER['QUERY_STRING'] === '')
|
||||
{{-- Landing page --}}
|
||||
|
||||
|
||||
@if(!DB::table('users')->get()->isEmpty())
|
||||
@php
|
||||
if(file_exists(base_path("INSTALLING"))){unlink(base_path("INSTALLING"));}
|
||||
header("Refresh:0");
|
||||
@endphp
|
||||
@else
|
||||
<div class="logo-container fadein">
|
||||
<img class="logo-img" src="{{ asset('littlelink/images/logo.svg') }}" alt="Logo">
|
||||
</div>
|
||||
@ -19,10 +25,9 @@
|
||||
2. Setup the database<br>
|
||||
3. Create the admin user<br>
|
||||
4. Configure the app<br>
|
||||
</div></p>
|
||||
<div class="row">
|
||||
</div></p>
|
||||
 <a class="btn" href="{{url('?2')}}"><button>Next</button></a> 
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@endif
|
||||
|
||||
|
@ -39,6 +39,14 @@ if(file_exists(base_path('INSTALLING'))){
|
||||
Route::post('/options', [InstallerController::class, 'options'])->name('options');
|
||||
Route::get('/mysql-test', [InstallerController::class, 'mysqlTest'])->name('mysqlTest');
|
||||
|
||||
Route::get('{any}', function() {
|
||||
if(!DB::table('users')->get()->isEmpty()){
|
||||
if(file_exists(base_path("INSTALLING"))){unlink(base_path("INSTALLING"));header("Refresh:0");}
|
||||
} else {
|
||||
return redirect(url(''));
|
||||
}
|
||||
})->where('any', '.*');
|
||||
|
||||
}else{
|
||||
|
||||
// Disables routes if in Maintenance Mode
|
||||
@ -101,7 +109,6 @@ Route::get('/studio/links/all', [UserController::class, 'showLinksAll'])->name('
|
||||
Route::get('/studio/theme', [UserController::class, 'showTheme'])->name('showTheme');
|
||||
Route::post('/studio/theme', [UserController::class, 'editTheme'])->name('editTheme');
|
||||
Route::get('/deleteLink/{id}', [UserController::class, 'deleteLink'])->name('deleteLink');
|
||||
Route::get('/clearIcon/{id}', [UserController::class, 'clearIcon'])->name('clearIcon');
|
||||
Route::get('/upLink/{up}/{id}', [UserController::class, 'upLink'])->name('upLink');
|
||||
Route::post('/studio/edit-link/{id}', [UserController::class, 'editLink'])->name('editLink');
|
||||
Route::get('/studio/button-editor/{id}', [UserController::class, 'showCSS'])->name('showCSS');
|
||||
@ -146,8 +153,6 @@ Route::group([
|
||||
Route::post('/panel/env', [AdminController::class, 'editENV'])->name('editENV');
|
||||
Route::get('/panel/site', [AdminController::class, 'showSite'])->name('showSite');
|
||||
Route::post('/panel/site', [AdminController::class, 'editSite'])->name('editSite');
|
||||
Route::get('/panel/site/delavatar', [AdminController::class, 'delAvatar'])->name('delAvatar');
|
||||
Route::get('/panel/site/delfavicon', [AdminController::class, 'delFavicon'])->name('delFavicon');
|
||||
Route::get('/panel/phpinfo', [AdminController::class, 'phpinfo'])->name('phpinfo');
|
||||
Route::get('/panel/backups', [AdminController::class, 'showBackups'])->name('showBackups');
|
||||
Route::post('/panel/theme', [AdminController::class, 'deleteTheme'])->name('deleteTheme');
|
||||
|
Loading…
x
Reference in New Issue
Block a user