From 65946ced5828721afb1372a441b7bf34745ecb5e Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 2 Apr 2023 11:36:20 +0200 Subject: [PATCH] Correct PUID PGID --- .templates/00-banner.sh | 2 +- nextcloud/rootfs/etc/cont-init.d/01-folders.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.templates/00-banner.sh b/.templates/00-banner.sh index 82cdf0d6a..5516f53b8 100755 --- a/.templates/00-banner.sh +++ b/.templates/00-banner.sh @@ -41,7 +41,7 @@ fi # ============================================================================== # Global actions for all addons # ============================================================================== -if bashio::config.has_value "PUID" && bashio::config.has_value "GUID"; then +if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then bashio::log.green "Defining permissions for main user :" bashio::log.blue "User UID: $PUID" bashio::log.blue "User GID : $PGID" diff --git a/nextcloud/rootfs/etc/cont-init.d/01-folders.sh b/nextcloud/rootfs/etc/cont-init.d/01-folders.sh index 062375f6a..61994f267 100755 --- a/nextcloud/rootfs/etc/cont-init.d/01-folders.sh +++ b/nextcloud/rootfs/etc/cont-init.d/01-folders.sh @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv bashio # shellcheck shell=bash -if bashio::config.has_value "PUID" && bashio::config.has_value "GUID"; then +if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then bashio::log.green "Setting user to $PUID:$PGID" groupmod -o -g "$PGID" abc usermod -o -u "$PUID" abc