mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-23 21:16:29 +01:00
Update run
This commit is contained in:
@@ -29,8 +29,9 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Mounting disks
|
# Mounting disks
|
||||||
for disk in ${MOREDISKS//,/ }; do # Separate comma separated values
|
for disk in ${MOREDISKS//,/ }; do # Separate comma separated values
|
||||||
disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name
|
disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name
|
||||||
diskname=${disk##*/} # Get only last part of the name
|
diskname=${disk//\\//} #replace \ with /
|
||||||
|
diskname=${diskname##*/} # Get only last part of the name
|
||||||
rm -r /mnt/$diskname 2>/dev/null || true # Create dir
|
rm -r /mnt/$diskname 2>/dev/null || true # Create dir
|
||||||
mkdir -p /mnt/$diskname # Create dir
|
mkdir -p /mnt/$diskname # Create dir
|
||||||
chown -R root:root /mnt/$diskname # Permissions
|
chown -R root:root /mnt/$diskname # Permissions
|
||||||
|
|||||||
Reference in New Issue
Block a user