Change local mount to mnt

This commit is contained in:
Alexandre
2021-10-23 21:46:11 +02:00
parent 74f9fba58c
commit e3e5a744ee
14 changed files with 84 additions and 84 deletions

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="mnt"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi

View File

@@ -3,7 +3,6 @@
###################### ######################
# MOUNT LOCAL SHARES # # MOUNT LOCAL SHARES #
###################### ######################
MOUNTPOINTS="share"
bashio::log.info 'Mounting external hdd...' bashio::log.info 'Mounting external hdd...'
@@ -16,9 +15,10 @@ if bashio::config.has_value 'localdisks'; then
# Separate comma separated values # Separate comma separated values
for disk in ${MOREDISKS//,/ }; do for disk in ${MOREDISKS//,/ }; do
# Mount each disk # Mount each disk
mkdir -p /$MOUNTPOINTS/$disk mkdir -p /mnt/$disk
chown -R $(id -u):$(id -g) /$MOUNTPOINTS/$disk chown -R $(id -u):$(id -g) /mnt/$disk
mount /dev/$disk /$MOUNTPOINTS/$disk [ -d /share/$disk ] && mount /dev/$disk /share/$disk || true
bashio::log.info "Success! $disk mounted to /$MOUNTPOINTS/$disk" mount /dev/$disk /mnt/$disk || (bashio::log.warning "Unable to mount local drives!" && rmdir /mnt/$disk)
bashio::log.info "Success! $disk mounted to /mnt/$disk"
done done
fi || (bashio::log.warning "Unable to mount local drives!" && rmdir /$MOUNTPOINTS/$disk) fi