Correct puid pgid

This commit is contained in:
Alexandre
2023-02-22 02:59:21 +01:00
committed by GitHub
parent fcd1b5ec14
commit ba0dabcc98

View File

@@ -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