Merge pull request #1535 from coollabsio/next

fix: is autoupdate not null
This commit is contained in:
Andras Bacsai 2023-12-11 23:27:12 +01:00 committed by GitHub
commit becb4df950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,10 +38,12 @@ class Init extends Command
setup_dynamic_configuration();
$settings = InstanceSettings::get();
if (env('AUTOUPDATE') == true) {
$settings->update(['is_auto_update_enabled' => true]);
} else {
$settings->update(['is_auto_update_enabled' => false]);
if (!is_null(env('AUTOUPDATE', null))) {
if (env('AUTOUPDATE') == true) {
$settings->update(['is_auto_update_enabled' => true]);
} else {
$settings->update(['is_auto_update_enabled' => false]);
}
}
}
private function cleanup_stucked_helper_containers()