align romm shim with jellyfin/navidrome uid pattern (romm_uid/romm_gid)

This commit is contained in:
2026-07-16 23:56:51 -04:00
parent 81d5db5ddb
commit dd5901a2f0
3 changed files with 19 additions and 5 deletions
+10 -5
View File
@@ -10,13 +10,18 @@ dependencies:
app_role_name: romm
# romm_library_path is intentionally excluded: it's user-managed
# external storage (often on NFS/SMB with pre-existing perms).
# mysql_data_path needs uid/gid 999 (mysql user inside the mariadb
# container) and mode 0700 (mariadb refuses world/group access).
# mysql_data_path is chowned to 999:999 mode 0700 for the mariadb
# container's mysql user. App dirs match romm_puid/romm_pgid when set;
# otherwise fall back to the base role's app_uid/app_gid.
app_subdirectories: >-
{{
[romm_assets_path, romm_config_path, romm_resources_path,
{'path': romm_mysql_data_path, 'owner': 999, 'group': 999, 'mode': '0700'}]
+ ([romm_redis_data_path] if romm_redis_data_path else [])
[
{'path': romm_assets_path, 'owner': romm_uid, 'group': romm_gid},
{'path': romm_config_path, 'owner': romm_uid, 'group': romm_gid},
{'path': romm_resources_path, 'owner': romm_uid, 'group': romm_gid},
{'path': romm_mysql_data_path, 'owner': 999, 'group': 999, 'mode': '0700'},
]
+ ([{'path': romm_redis_data_path, 'owner': romm_uid, 'group': romm_gid}] if romm_redis_data_path else [])
}}
app_backup_subdirectories:
- "{{ romm_assets_path }}"