mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Correct PUID PGID
This commit is contained in:
@@ -41,7 +41,7 @@ fi
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Global actions for all addons
|
# Global actions for all addons
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if bashio::config.has_value "PUID" && bashio::config.has_value "GUID"; then
|
if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then
|
||||||
bashio::log.green "Defining permissions for main user :"
|
bashio::log.green "Defining permissions for main user :"
|
||||||
bashio::log.blue "User UID: $PUID"
|
bashio::log.blue "User UID: $PUID"
|
||||||
bashio::log.blue "User GID : $PGID"
|
bashio::log.blue "User GID : $PGID"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
if bashio::config.has_value "PUID" && bashio::config.has_value "GUID"; then
|
if bashio::config.has_value "PUID" && bashio::config.has_value "PGID"; then
|
||||||
bashio::log.green "Setting user to $PUID:$PGID"
|
bashio::log.green "Setting user to $PUID:$PGID"
|
||||||
groupmod -o -g "$PGID" abc
|
groupmod -o -g "$PGID" abc
|
||||||
usermod -o -u "$PUID" abc
|
usermod -o -u "$PUID" abc
|
||||||
|
|||||||
Reference in New Issue
Block a user