mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Improve PUID PGID
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user