mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Change local mount to mnt
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user