Exit out as early as possible if the auto-update script is run as the root user

Created on 20 March 2024, 3 months ago
Updated 24 April 2024, about 2 months ago

Problem/Motivation

In πŸ› Warn if auto-update script is running as root Needs review we added a warning if the auto-update script is run as the root user. In 3.1.x we should not all this.

Steps to reproduce

Proposed resolution

In \Drupal\automatic_updates\Commands\AutomaticUpdatesCommandBase::runStatusChecks we should exit if the user is root. We should not do this in a validator because if the script is being run as we should exit out before we even boot drupal.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024