Update 50-mounts

This commit is contained in:
Alexandre
2021-02-15 21:33:26 +01:00
committed by GitHub
parent 5415b19e42
commit d9e01e234c

View File

@@ -29,13 +29,9 @@ if bashio::config.has_value 'networkdisks'; then
for disk in $MOREDISKS for disk in $MOREDISKS
do do
bashio::log.info "Mount ${disk}" bashio::log.info "Mount ${disk}"
mkdir -p /share/storagecifs && \ echo "Creating /share/storagecifs"
if [ ! -d /storage/storagecifs ]; then mkdir -p /share/storagecifs
echo "Creating /storage/storagecifs" chown -R abc:abc /share/storagecifs
mkdir -p /storage/storagecifs
chown -R abc:abc /storage/storagecifs
fi
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \ mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD $disk /storage/storagecifs && \
bashio::log.info "Success!" bashio::log.info "Success!"
done || \ done || \