Use values for CIFS vers from the mount.cifs man page.

This commit is contained in:
cimryan
2018-10-25 07:21:39 -07:00
parent 0cd55b3b3f
commit 93b7663142
2 changed files with 4 additions and 2 deletions

View File

@@ -33,7 +33,9 @@ function check_archive_mountable () {
if [ "$mount_failed" = true ] if [ "$mount_failed" = true ]
then then
echo "STOP: The archive couldn't be mounted with CIFS version ${cifs_version}. Try specifying a lower number for the CIFS version like this: export cifs_version=2" echo "STOP: The archive couldn't be mounted with CIFS version ${cifs_version}. Try specifying a lower number for the CIFS version like this:"
echo " export cifs_version=2.1"
echo "Other versions you can try are 2.0 and 1.0"
exit 1 exit 1
fi fi

View File

@@ -193,7 +193,7 @@ else # Else for now, TODO allow both for more redundancy?
check_variable "shareuser" check_variable "shareuser"
check_variable "sharepassword" check_variable "sharepassword"
export cifs_version="${cifs_version:-3}" export cifs_version="${cifs_version:-3.0}"
fi fi
check_variable "archiveserver" check_variable "archiveserver"