Minor fixes for self update

This commit is contained in:
David Bomba 2021-04-27 20:39:10 +10:00
parent d2bb8d6d81
commit ac3c1f349e

View File

@ -66,7 +66,7 @@ class SelfUpdateController extends BaseController
throw new FilePermissionsFailure('Cannot update system because files are not writable!');
// Check if new version is available
if($updater->source()->isNewVersionAvailable()) {
//if($updater->source()->isNewVersionAvailable()) {
// Get the new version available
$versionAvailable = $updater->source()->getVersionAvailable();
@ -76,7 +76,7 @@ class SelfUpdateController extends BaseController
$updater->source()->update($release);
}
//}
$cacheCompiled = base_path('bootstrap/cache/compiled.php');
if (file_exists($cacheCompiled)) { unlink ($cacheCompiled); }