| 
														
															@@ -13,7 +13,7 @@ if (!$env:filespath) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     exit 1 
														 | 
														
														 | 
														
															     exit 1 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-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" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     New-SmbMapping -RemotePath $env:logpath -UserName $sh_username -Password $sh_passwd 
														 | 
														
														 | 
														
															     New-SmbMapping -RemotePath $env:logpath -UserName $sh_username -Password $sh_passwd 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -27,7 +27,7 @@ else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 new-item -ItemType SymbolicLink -path C:\Services\Analis -Name Log -value $env:logshare -Force 
														 | 
														
														 | 
														
															 new-item -ItemType SymbolicLink -path C:\Services\Analis -Name Log -value $env:logshare -Force 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 new-item -ItemType SymbolicLink -path $env:filespath -Name Files -value $env:filesshare -Force 
														 | 
														
														 | 
														
															 new-item -ItemType SymbolicLink -path $env:filespath -Name Files -value $env:filesshare -Force 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-if ( !test-path("C:\Services\Analis\analis.conf") ){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+if ( -Not (test-path("C:\Services\Analis\analis.conf")) ){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     move-item -path C:\Services\Analis\analis-default.conf -destination C:\Services\Analis\analis.conf 
														 | 
														
														 | 
														
															     move-item -path C:\Services\Analis\analis-default.conf -destination C:\Services\Analis\analis.conf 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |