1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Refactor self updater

This commit is contained in:
David Bomba 2021-04-09 15:53:12 +10:00
parent b6d26fa7c9
commit 5be620ccde
3 changed files with 2 additions and 23 deletions

View File

@ -63,27 +63,6 @@ class SelfUpdateController extends BaseController
return response()->json(['message' => ctrans('texts.self_update_not_available')], 403);
}
// $it = new \RecursiveDirectoryIterator("/home/david/Development/invoiceninja");
// $x=1;
// // Loop through files
// foreach(new \RecursiveIteratorIterator($it) as $file) {
// var_dum
// if(is_file($file) && is_writable($file))
// nlog('writable ' .$x);
// elseif(is_file($file))
// nlog("{$file} is not writable {$x}");
// //exit;
// $x++;
// // if ($file->isWritable() === false) {
// // $checkPermission = false;
// // }
// }
// Check if new version is available
if($updater->source()->isNewVersionAvailable()) {

View File

@ -15,7 +15,7 @@ return [
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', ''),
'app_version' => '5.1.42',
'app_tag' => '5.1.40-release',
'app_tag' => '5.1.42-release',
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),

View File

@ -5,7 +5,7 @@ use Illuminate\Support\Facades\Route;
//Auth::routes(['password.reset' => false]);
Route::get('/', 'BaseController@flutterRoute')->middleware('guest');
Route::get('self-update', 'SelfUpdateController@update')->middleware('guest');
// Route::get('self-update', 'SelfUpdateController@update')->middleware('guest');
Route::get('setup', 'SetupController@index')->middleware('guest');
Route::post('setup', 'SetupController@doSetup')->middleware('guest');