File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,12 @@ if ( $sync_required )
144
144
Write-host " $ ( & hostname) :: Creating fileshare on the remote host in $fileshare_dest , granting access to Everyone"
145
145
$shr = New-SmbShare - Name " vagrant-sync" - Temporary - Path $fileshare_dest
146
146
}
147
- $g_info = Grant-SmbShareAccess - InputObject $shr - AccountName Everyone - AccessRight Full - Force - Confirm
147
+ $g_info = Grant-SmbShareAccess - InputObject $shr - AccountName " $ ( $ env: USERDOMAIN ) \ $ ( $ env: USERNAME ) " - AccessRight Full - Force
148
148
}
149
149
150
150
# get access to the fileshare from the current machine
151
151
Write-host " Getting access from the current machine to the created fileshare (\\$vm_address \vagrant-sync)"
152
- $vagrant_sync_drive = New-PSDrive - Name ' V' - PSProvider ' FileSystem' - Root " \\$vm_address \vagrant-sync"
152
+ $vagrant_sync_drive = New-PSDrive - Name ' V' - PSProvider ' FileSystem' - Root " \\$vm_address \vagrant-sync" - Credential $creds_to_vm
153
153
154
154
Write-host " Syncing files to fileshare..."
155
155
foreach ( $hst_path in $copy_files.Keys )
Original file line number Diff line number Diff line change 1
1
module VagrantPlugins
2
2
module VMM
3
- VERSION = "1.0.6 "
3
+ VERSION = "1.0.7 "
4
4
end
5
5
end
You can’t perform that action at this time.
0 commit comments