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