mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-11-04 05:53:19 +00:00 
			
		
		
		
	Update entrypoint.sh
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							6f053fece2
						
					
				
				
					commit
					9dca2f589a
				
			@@ -39,7 +39,7 @@ chmod 700 /$CERT_TOOL
 | 
				
			|||||||
## Execute cert tool and parsin cert.yml to set UID permissions
 | 
					## Execute cert tool and parsin cert.yml to set UID permissions
 | 
				
			||||||
source /$CERT_TOOL -A
 | 
					source /$CERT_TOOL -A
 | 
				
			||||||
nodes_server=$( cert_parseYaml /config.yml | grep nodes_server_name | sed 's/nodes_server_name=//' )
 | 
					nodes_server=$( cert_parseYaml /config.yml | grep nodes_server_name | sed 's/nodes_server_name=//' )
 | 
				
			||||||
node_name=($nodes_server)
 | 
					node_names=($nodes_server)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "Moving created certificates to destination directory"
 | 
					echo "Moving created certificates to destination directory"
 | 
				
			||||||
cp /wazuh-certificates/* /certificates/
 | 
					cp /wazuh-certificates/* /certificates/
 | 
				
			||||||
@@ -54,7 +54,7 @@ cp /certificates/root-ca.key /certificates/root-ca-manager.key
 | 
				
			|||||||
chown 999:997 /certificates/root-ca-manager.pem
 | 
					chown 999:997 /certificates/root-ca-manager.pem
 | 
				
			||||||
chown 999:997 /certificates/root-ca-manager.key
 | 
					chown 999:997 /certificates/root-ca-manager.key
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for i in ${node_name[@]}; 
 | 
					for i in ${node_names[@]}; 
 | 
				
			||||||
do 
 | 
					do 
 | 
				
			||||||
  chown 999:997 "/certificates/${i}.pem"
 | 
					  chown 999:997 "/certificates/${i}.pem"
 | 
				
			||||||
  chown 999:997 "/certificates/${i}-key.pem"
 | 
					  chown 999:997 "/certificates/${i}-key.pem"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user