(feat) Dynamically set PGID, GID and GROUP_ID (#1091)

* base PGID on fsGroup

* also remove PGID from questions.yaml

* remove mistake

* small fix

* fix first test

* fix linting

* always set PUID to 568

* use quotes for env vars (obviously)
This commit is contained in:
Kjeld Schouten-Lebbing
2021-10-04 12:31:56 +02:00
committed by GitHub
parent 1a7a85d772
commit 308ba8accf
63 changed files with 117 additions and 241 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ image:
envTpl:
# Permissions Settings
USER_ID: "{{ .Values.env.PUID }}"
GROUP_ID: "{{ .Values.env.PGID }}"
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart
+1 -6
View File
@@ -85,12 +85,7 @@ questions:
schema:
type: int
default: 568
- variable: PGID
label: "PGID"
description: "Sets the PGID env var for LinuxServer.io (compatible) containers"
schema:
type: int
default: 568
- variable: UMASK
label: "UMASK"
description: "Sets the UMASK env var for LinuxServer.io (compatible) containers"
+3 -3
View File
@@ -29,12 +29,12 @@ service:
envTpl:
# Permissions Settings
USER_ID: "{{ .Values.env.PUID }}"
GROUP_ID: "{{ .Values.env.PGID }}"
env:
# Permissions Settings
PUID: "568"
PGID: "568"
PUID: 568
# General Settings
KEEP_APP_RUNNING: "0"
CLEAN_TMP_DIR: "1"