mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Correct puid pgid
This commit is contained in:
@@ -28,7 +28,11 @@ if bashio::config.has_value 'localdisks'; then
|
|||||||
|
|
||||||
# Creates dir
|
# Creates dir
|
||||||
mkdir -p /mnt/"$disk"
|
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
|
# Install lsblk
|
||||||
if ! command -v "lsblk" &>/dev/null; then
|
if ! command -v "lsblk" &>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user