Improve PUID PGID

This commit is contained in:
Alexandre
2023-04-02 12:00:38 +02:00
parent 78e2b0fd11
commit 96a1112f4b
2 changed files with 3 additions and 3 deletions

View File

@@ -47,8 +47,8 @@ if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then
PGID="$(bashio::config "PGID")" PGID="$(bashio::config "PGID")"
bashio::log.blue "User UID: $PUID" bashio::log.blue "User UID: $PUID"
bashio::log.blue "User GID : $PGID" bashio::log.blue "User GID : $PGID"
groupmod -o -g "$PGID" abc groupmod -o -g "$PGID" abc &>/dev/null || true
usermod -o -u "$PUID" abc usermod -o -u "$PUID" abc &>/dev/null || true
bashio::log.blue \ bashio::log.blue \
'-----------------------------------------------------------' '-----------------------------------------------------------'
fi fi

View File

@@ -40,7 +40,7 @@ LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ"
function nextcloud_download { function nextcloud_download {
mkdir -p /app mkdir -p /app
if [ -f /app/nextcloud.tar.bz2 ]; then rm /app/nextcloud.tar.bz2; fi 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 # Check current version