This function was intended to be idempotent. In Ubuntu 22.04, when the `spdk` user already existed, we got the following error: ``` Warning: The home dir /home/spdk you specified already exists. adduser: The user `spdk' already exists. ``` In Ubuntu 24.04, this has changed to: ``` info: The home dir /home/spdk you specified already exists. fatal: The user `spdk' already exists. ``` This PR changes the regex to catch both cases.
4.9 KiB
4.9 KiB