From ba0dabcc9817fb12b8426bc7077f54a8def57020 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 22 Feb 2023 02:59:21 +0100 Subject: [PATCH] Correct puid pgid --- .templates/92-local_mounts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.templates/92-local_mounts.sh b/.templates/92-local_mounts.sh index f6c4ee24f..3843a0ea6 100755 --- a/.templates/92-local_mounts.sh +++ b/.templates/92-local_mounts.sh @@ -28,7 +28,11 @@ if bashio::config.has_value 'localdisks'; then # Creates dir mkdir -p /mnt/"$disk" - chown "$PUID:$PGID" /mnt/"$disk" + if bashio::config.has_value 'PUID' && bashio::config.has_value 'PGID'; then + PUID="$(bashio::config 'PUID')" + PGID="$(bashio::config 'PUID')" + chown "$PUID:$PGID" /mnt/"$disk" + fi # Install lsblk if ! command -v "lsblk" &>/dev/null; then