mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 13:54:05 +02:00
Update 00-banner.sh
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user