From 96a1112f4b21eb8bae6f64ef426a445bbdac1998 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 2 Apr 2023 12:00:38 +0200 Subject: [PATCH] Improve PUID PGID --- .templates/00-banner.sh | 4 ++-- nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.templates/00-banner.sh b/.templates/00-banner.sh index b003b45e1..918bbc56e 100755 --- a/.templates/00-banner.sh +++ b/.templates/00-banner.sh @@ -47,8 +47,8 @@ if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then PGID="$(bashio::config "PGID")" bashio::log.blue "User UID: $PUID" bashio::log.blue "User GID : $PGID" - groupmod -o -g "$PGID" abc - usermod -o -u "$PUID" abc + groupmod -o -g "$PGID" abc &>/dev/null || true + usermod -o -u "$PUID" abc &>/dev/null || true bashio::log.blue \ '-----------------------------------------------------------' fi diff --git a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh index 0adf8dbe4..ad5b42f80 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -40,7 +40,7 @@ LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" function nextcloud_download { mkdir -p /app if [ -f /app/nextcloud.tar.bz2 ]; then rm /app/nextcloud.tar.bz2; fi - curl -o /app/nextcloud.tar.bz2 -L "https://download.nextcloud.com/server/releases/$1.tar.bz2" + curl -s -o /app/nextcloud.tar.bz2 -L "https://download.nextcloud.com/server/releases/$1.tar.bz2" } # Check current version