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(); setup_dynamic_configuration();
$settings = InstanceSettings::get(); $settings = InstanceSettings::get();
if (env('AUTOUPDATE') == true) { if (!is_null(env('AUTOUPDATE', null))) {
$settings->update(['is_auto_update_enabled' => true]); if (env('AUTOUPDATE') == true) {
} else { $settings->update(['is_auto_update_enabled' => true]);
$settings->update(['is_auto_update_enabled' => false]); } else {
$settings->update(['is_auto_update_enabled' => false]);
}
} }
} }
private function cleanup_stucked_helper_containers() private function cleanup_stucked_helper_containers()