mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-15 20:09:13 +02: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")"
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user