fixing cifs issue with my last change and reordering so we don't need a separate credential file

This commit is contained in:
Ray Tanaka
2018-10-29 23:59:04 -07:00
parent ef523f542d
commit fc1568db61
2 changed files with 4 additions and 5 deletions

View File

@@ -24,6 +24,8 @@ function check_archive_mountable () {
mkdir "$test_mount_location"
fi
local tmp_credentials_file_path="/root/.teslaCamArchiveCredentials"
local mount_failed=false
mount -t cifs "//$archive_server_ip_address/$sharename" "$test_mount_location" -o "vers=${cifs_version},credentials=${tmp_credentials_file_path},iocharset=utf8,file_mode=0777,dir_mode=0777" || mount_failed=true