mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-26 07:44:18 +00:00
Correct PUID PGID
This commit is contained in:
1 parent
6e8cf5b4e6
commit
65946ced58
2 files changed
+2
-2
No files matched your search
@@ -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