mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
refactoring to add back write configs script
This commit is contained in:
@@ -26,9 +26,8 @@ function check_archive_mountable () {
|
||||
|
||||
local cifs_version="${cifs_version:-3.0}"
|
||||
|
||||
local tmp_credentials_file_path="/tmp/.teslaCamArchiveCredentials"
|
||||
echo "username=$shareuser" > "$tmp_credentials_file_path"
|
||||
echo "password=$sharepassword" >> "$tmp_credentials_file_path"
|
||||
local tmp_credentials_file_path="/tmp/teslaCamArchiveCredentials"
|
||||
/root/bin/write-archive-configs-to.sh "$tmp_credentials_file_path"
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user