mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-30 23:04:34 -04:00
Minor fixes for self update
This commit is contained in:
parent
d2bb8d6d81
commit
ac3c1f349e
@ -66,7 +66,7 @@ class SelfUpdateController extends BaseController
|
|||||||
throw new FilePermissionsFailure('Cannot update system because files are not writable!');
|
throw new FilePermissionsFailure('Cannot update system because files are not writable!');
|
||||||
|
|
||||||
// Check if new version is available
|
// Check if new version is available
|
||||||
if($updater->source()->isNewVersionAvailable()) {
|
//if($updater->source()->isNewVersionAvailable()) {
|
||||||
|
|
||||||
// Get the new version available
|
// Get the new version available
|
||||||
$versionAvailable = $updater->source()->getVersionAvailable();
|
$versionAvailable = $updater->source()->getVersionAvailable();
|
||||||
@ -76,7 +76,7 @@ class SelfUpdateController extends BaseController
|
|||||||
|
|
||||||
$updater->source()->update($release);
|
$updater->source()->update($release);
|
||||||
|
|
||||||
}
|
//}
|
||||||
|
|
||||||
$cacheCompiled = base_path('bootstrap/cache/compiled.php');
|
$cacheCompiled = base_path('bootstrap/cache/compiled.php');
|
||||||
if (file_exists($cacheCompiled)) { unlink ($cacheCompiled); }
|
if (file_exists($cacheCompiled)) { unlink ($cacheCompiled); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user