Added skip option to installer

This commit is contained in:
Julian Prieber 2022-12-02 14:35:14 +01:00
parent 7a07b49b3f
commit bc900d0d29
3 changed files with 13 additions and 3 deletions

View File

@ -140,4 +140,11 @@ class InstallerController extends Controller
return redirect(url(''));
}
public function skip()
{
if(file_exists(base_path("INSTALLING"))){unlink(base_path("INSTALLING"));}
return redirect(url(''));
}
}

View File

@ -20,9 +20,11 @@
3. Create the admin user<br>
4. Configure the app<br>
</div></p>
<div class="row">
@if(!DB::table('users')->get()->isEmpty())
<span>An existing installation has been detected.<br>You may skip the installation process.</span>
&ensp;<a style="margin-bottom:-20px;" class="btn" href="{{url('skip')}}"><button>Skip</button></a>&ensp;
@endif
&ensp;<a class="btn" href="{{url('?2')}}"><button>Next</button></a>&ensp;
</div>
@endif

View File

@ -38,6 +38,7 @@ if(file_exists(base_path('INSTALLING'))){
Route::post('/mysql', [InstallerController::class, 'mysql'])->name('mysql');
Route::post('/options', [InstallerController::class, 'options'])->name('options');
Route::get('/mysql-test', [InstallerController::class, 'mysqlTest'])->name('mysqlTest');
Route::get('/skip', [InstallerController::class, 'skip'])->name('skip');
}else{