Update 92-mounts

This commit is contained in:
Alexandre
2021-02-16 14:32:02 +01:00
committed by GitHub
parent 4537be17a5
commit 0d30867979

View File

@@ -36,10 +36,10 @@ if bashio::config.has_value 'networkdisks'; then
for disk in $MOREDISKS
do
bashio::log.info "Mount ${disk}"
echo "Creating /storage/storagecifs"
mkdir -p /storage/storagecifs
chown -R abc:abc /storage/storagecifs
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \
echo "Creating /share/storagecifs"
mkdir -p /share/storagecifs
chown -R abc:abc /share/storagecifs
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /share/storagecifs && \
bashio::log.info "Success!"
done || \
bashio::log.warning "Protection mode is ON. Unable to mount external drives!"