Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: is autoupdate not null

Andras Bacsai20dc2b47fe40
diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php
index d864c9c486..54addf9216 100644
--- a/app/Console/Commands/Init.php
+++ b/app/Console/Commands/Init.php
@@ -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()