mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Correct PUID GUID
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
PUID="$(bashio::config "PUID")"
|
||||
PGID="$(bashio::config "PGID")"
|
||||
groupmod -o -g "$PGID" abc
|
||||
usermod -o -u "$PUID" abc
|
||||
if bashio::config.has_value "PUID" && bashio::config.has_value "GUID"; then
|
||||
bashio::log.green "Setting user to $PUID:$PGID"
|
||||
groupmod -o -g "$PGID" abc
|
||||
usermod -o -u "$PUID" abc
|
||||
fi
|
||||
|
||||
echo "Updating permissions..."
|
||||
echo "... Config directory : /data"
|
||||
|
||||
Reference in New Issue
Block a user