mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
On a development container, we are currently changing the plinth user to be a non-system user to allow folder sharing with the host. This leads to `addgroup --system` and `adduser --system` failing when a non-system user/group already exists. This patch added checks to ensure that plinth user and group don't exist before trying to add them. Several packages in Debian seem to be doing similar checks before running adduser and addgroup. So, this patch is not bad to have even when container hack is not present. Closes: #1875. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>