mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 09:28:20 +01:00
PUID GUID
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 &>/dev/null || true
|
||||
usermod -o -u "$PUID" abc &>/dev/null || true
|
||||
id -u abc &>/dev/null || usermod -o -u "$PUID" abc &>/dev/null || true
|
||||
id -g abc &>/dev/null || groupmod -o -g "$PGID" abc &>/dev/null || true
|
||||
bashio::log.blue \
|
||||
'-----------------------------------------------------------'
|
||||
fi
|
||||
|
||||
@@ -5,8 +5,8 @@ if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then
|
||||
PUID="$(bashio::config "PUID")"
|
||||
PGID="$(bashio::config "PGID")"
|
||||
bashio::log.green "Setting user to $PUID:$PGID"
|
||||
groupmod -o -g "$PGID" abc
|
||||
usermod -o -u "$PUID" abc
|
||||
id -u abc &>/dev/null || usermod -o -u "$PUID" abc || true
|
||||
id -g abc &>/dev/null || groupmod -o -g "$PGID" abc || true
|
||||
fi
|
||||
|
||||
echo "Updating permissions..."
|
||||
|
||||
Reference in New Issue
Block a user