refactoring to add back write configs script

This commit is contained in:
Ray Tanaka
2018-11-02 15:24:25 -07:00
parent d758757839
commit aefdb082d0
8 changed files with 28 additions and 12 deletions

View File

@@ -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