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,12 +38,14 @@ class Init extends Command
setup_dynamic_configuration();
$settings = InstanceSettings::get();
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()
{
$servers = Server::all();