Explorar o código

add debug info

Vadim Surkov %!s(int64=6) %!d(string=hai) anos
pai
achega
84988f5ca7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      entrypoint.ps1

+ 2 - 0
entrypoint.ps1

@@ -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")) ){
     $sh_username=Get-Content -path "C:\ProgramData\Docker\secrets\shares.username"
     $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:filesshare -UserName $sh_username -Password $sh_passwd
 }