mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 17:08:19 +01:00
Correct puid pgid
This commit is contained in:
@@ -28,7 +28,11 @@ if bashio::config.has_value 'localdisks'; then
|
||||
|
||||
# Creates dir
|
||||
mkdir -p /mnt/"$disk"
|
||||
chown "$PUID:$PGID" /mnt/"$disk"
|
||||
if bashio::config.has_value 'PUID' && bashio::config.has_value 'PGID'; then
|
||||
PUID="$(bashio::config 'PUID')"
|
||||
PGID="$(bashio::config 'PUID')"
|
||||
chown "$PUID:$PGID" /mnt/"$disk"
|
||||
fi
|
||||
|
||||
# Install lsblk
|
||||
if ! command -v "lsblk" &>/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user