Update 00-banner.sh

This commit is contained in:
Alexandre
2026-02-11 14:33:01 +01:00
committed by GitHub
parent d10a659612
commit 201f357334

View File

@@ -43,15 +43,12 @@ bashio::log.blue '-----------------------------------------------------------'
bashio::log.green ' Provided by: https://github.com/alexbelgium/hassio-addons ' bashio::log.green ' Provided by: https://github.com/alexbelgium/hassio-addons '
bashio::log.blue '-----------------------------------------------------------' bashio::log.blue '-----------------------------------------------------------'
# ====================================================================== # Adapt user abc
# UID/GID logic stays unchanged if command -v id &>/dev/null && id abc &>/dev/null; then
# ====================================================================== if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then
PUID="$(bashio::config "PUID")"
if bashio::config.has_value "PUID" && bashio::config.has_value "PGID" && id abc &>/dev/null; then PGID="$(bashio::config "PGID")"
PUID="$(bashio::config "PUID")" usermod -o -u "${PUID:-0}" abc
PGID="$(bashio::config "PGID")" groupmod -o -g "${PGID:-0}" abc
usermod -o -u "$PUID" abc fi
groupmod -o -g "$PGID" abc
fi fi
[ -f ~/.bashrc ] && : > ~/.bashrc