fix: is autoupdate not null

This commit is contained in:
Andras Bacsai 2023-12-11 23:26:49 +01:00
parent 87c3d0048c
commit 20dc2b47fe

View File

@ -38,10 +38,12 @@ public function handle()
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()