|
@@ -16,6 +16,8 @@ if (!$env:filespath) {
|
|
if ( (test-path("C:\ProgramData\Docker\secrets\shares.username")) -And (test-path("C:\ProgramData\Docker\secrets\shares.passwd")) ){
|
|
if ( (test-path("C:\ProgramData\Docker\secrets\shares.username")) -And (test-path("C:\ProgramData\Docker\secrets\shares.passwd")) ){
|
|
$sh_username=Get-Content -path "C:\ProgramData\Docker\secrets\shares.username"
|
|
$sh_username=Get-Content -path "C:\ProgramData\Docker\secrets\shares.username"
|
|
$sh_passwd=Get-Content -path "C:\ProgramData\Docker\secrets\shares.passwd"
|
|
$sh_passwd=Get-Content -path "C:\ProgramData\Docker\secrets\shares.passwd"
|
|
|
|
+echo New-SmbMapping -RemotePath $env:logshare -UserName $sh_username -Password $sh_passwd
|
|
|
|
+echo New-SmbMapping -RemotePath $env:filesshare -UserName $sh_username -Password $sh_passwd
|
|
New-SmbMapping -RemotePath $env:logshare -UserName $sh_username -Password $sh_passwd
|
|
New-SmbMapping -RemotePath $env:logshare -UserName $sh_username -Password $sh_passwd
|
|
New-SmbMapping -RemotePath $env:filesshare -UserName $sh_username -Password $sh_passwd
|
|
New-SmbMapping -RemotePath $env:filesshare -UserName $sh_username -Password $sh_passwd
|
|
}
|
|
}
|