orangeqs.juice.orchestration.user#
Ensure the OrangeQS Juice system user and group exist.
Module Contents#
Functions#
Ensure the ‘juice-data’ user and group are correctly configured. |
API#
- orangeqs.juice.orchestration.user.ensure_juice_user_and_group(settings: orangeqs.juice.orchestration.settings.DataFolderSettings) bool#
Ensure the ‘juice-data’ user and group are correctly configured.
If the uid and gid are not set in the settings, this function will create the ‘juice-data’ user and group if they do not exist, and update the settings with the correct uid and gid.
Parameters#
settings (DataFolderSettings): The data folder settings.
Returns#
(bool): True if any changes were made, False otherwise. Changes include creating the user/group or writing updated settings to disk.