mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-18 21:39:12 +02:00
Update 92-local_mounts.sh
This commit is contained in:
@@ -35,7 +35,7 @@ if bashio::config.has_value 'localdisks'; then
|
|||||||
|
|
||||||
# Creates dir
|
# Creates dir
|
||||||
mkdir -p /mnt/"$disk"
|
mkdir -p /mnt/"$disk"
|
||||||
chown -R "$PUID:$PGID" /mnt/"$disk"
|
chown "$PUID:$PGID" /mnt/"$disk"
|
||||||
# Legacy mounting : mount to share if still exists (avoid breaking changes)
|
# Legacy mounting : mount to share if still exists (avoid breaking changes)
|
||||||
# shellcheck disable=SC2015
|
# shellcheck disable=SC2015
|
||||||
[ -d /share/"$disk" ] && mount "$devpath"/"$disk" /share/"$disk" || true
|
[ -d /share/"$disk" ] && mount "$devpath"/"$disk" /share/"$disk" || true
|
||||||
|
|||||||
Reference in New Issue
Block a user