mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-27 09:46:04 +02:00
mount in /share
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
|
||||||
|
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
bashio::log.info 'Mounting external hdd...'
|
bashio::log.info 'Mounting external hdd...'
|
||||||
|
|
||||||
@@ -10,13 +8,13 @@ if bashio::config.has_value 'localdisks'; then
|
|||||||
for disk in $MOREDISKS
|
for disk in $MOREDISKS
|
||||||
do
|
do
|
||||||
bashio::log.info "Mount ${disk}"
|
bashio::log.info "Mount ${disk}"
|
||||||
mkdir -p /storage/$disk && \
|
mkdir -p /share/$disk && \
|
||||||
if [ ! -d /storage/$disk ]; then
|
if [ ! -d /share/$disk ]; then
|
||||||
echo "Creating /storage/$disk"
|
echo "Creating /share/$disk"
|
||||||
mkdir -p /storage/$disk
|
mkdir -p /share/$disk
|
||||||
chown -R abc:abc /storage/$disk
|
chown -R abc:abc /share/$disk
|
||||||
fi
|
fi
|
||||||
mount /dev/$disk /storage/$disk && \
|
mount /dev/$disk /share/$disk && \
|
||||||
bashio::log.info "Success!"
|
bashio::log.info "Success!"
|
||||||
done || \
|
done || \
|
||||||
bashio::log.warning "Protection mode is ON. Unable to mount local drives!"
|
bashio::log.warning "Protection mode is ON. Unable to mount local drives!"
|
||||||
|
|||||||
Reference in New Issue
Block a user