@@ -35,8 +35,7 @@ public function handle()
35
35
}
36
36
37
37
$ this ->servers = Server::all ();
38
- if (isCloud ()) {
39
- } else {
38
+ if (! isCloud ()) {
40
39
$ this ->send_alive_signal ();
41
40
get_public_ips ();
42
41
}
@@ -88,8 +87,10 @@ public function handle()
88
87
$ settings = instanceSettings ();
89
88
if (! is_null (config ('constants.coolify.autoupdate ' , null ))) {
90
89
if (config ('constants.coolify.autoupdate ' ) == true ) {
90
+ echo "Enabling auto-update \n" ;
91
91
$ settings ->update (['is_auto_update_enabled ' => true ]);
92
92
} else {
93
+ echo "Disabling auto-update \n" ;
93
94
$ settings ->update (['is_auto_update_enabled ' => false ]);
94
95
}
95
96
}
@@ -119,7 +120,9 @@ private function optimize()
119
120
private function update_user_emails ()
120
121
{
121
122
try {
122
- User::whereRaw ('email ~ \'[A-Z] \'' )->get ()->each (fn (User $ user ) => $ user ->update (['email ' => strtolower ($ user ->email )]));
123
+ User::whereRaw ('email ~ \'[A-Z] \'' )->get ()->each (function (User $ user ) {
124
+ $ user ->update (['email ' => strtolower ($ user ->email )]);
125
+ });
123
126
} catch (\Throwable $ e ) {
124
127
echo "Error in updating user emails: {$ e ->getMessage ()}\n" ;
125
128
}
@@ -200,7 +203,6 @@ private function restore_coolify_db_backup()
200
203
try {
201
204
$ database = StandalonePostgresql::withTrashed ()->find (0 );
202
205
if ($ database && $ database ->trashed ()) {
203
- echo "Restoring coolify db backup \n" ;
204
206
$ database ->restore ();
205
207
$ scheduledBackup = ScheduledDatabaseBackup::find (0 );
206
208
if (! $ scheduledBackup ) {
0 commit comments