diff --git a/app/Console/Commands/SendExpectedCheckinAlerts.php b/app/Console/Commands/SendExpectedCheckinAlerts.php index f56f6f88c6..b0cbb1f518 100644 --- a/app/Console/Commands/SendExpectedCheckinAlerts.php +++ b/app/Console/Commands/SendExpectedCheckinAlerts.php @@ -8,6 +8,7 @@ use App\Notifications\ExpectedCheckinAdminNotification; use App\Notifications\ExpectedCheckinNotification; use Carbon\Carbon; use Illuminate\Console\Command; +use App\Models\Recipients\AlertRecipient; class SendExpectedCheckinAlerts extends Command { diff --git a/upgrade.php b/upgrade.php index 013b819536..0382171e98 100644 --- a/upgrade.php +++ b/upgrade.php @@ -3,8 +3,8 @@ $required_version = '7.2.0'; -if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { - echo "Skipping user check as it is not supported on Windows\n"; +if ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') || (!function_exists('posix_getpwuid'))) { + echo "Skipping user check as it is not supported on Windows or Posix is not installed on this server. \n"; } else { $pwu_data = posix_getpwuid(posix_geteuid()); $username = $pwu_data['name'];