mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update 92-smb_mounts_v1.1
This commit is contained in:
@@ -28,6 +28,6 @@ if bashio::config.has_value 'networkdisks'; then
|
||||
mkdir -p /mnt/$diskname # Create dir
|
||||
chown -R root:root /mnt/$diskname # Permissions
|
||||
mount -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD$SMBVERS $disk /mnt/$diskname && \
|
||||
bashio::log.info "... $disk successfully mounted to /mnt/$diskname" || bashio::log.error "Unable to mount $disk to /mnt/$diskname with username $CIFS_USERNAME, $CIFS_PASSWORD . Please check your remote share path, the username and password, and try to check the smbv1 box in option if your share is using smb v1" # Mount share
|
||||
bashio::log.info "... $disk successfully mounted to /mnt/$diskname" || {mount -v -t cifs -o username=$CIFS_USERNAME,password=$CIFS_PASSWORD$SMBVERS $disk /mnt/$diskname ; bashio::log.error "Unable to mount $disk to /mnt/$diskname with username $CIFS_USERNAME, $CIFS_PASSWORD . Please check your remote share path, the username and password, and try to check the smbv1 box in option if your share is using smb v1"} # Mount share
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user