mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-31 00:17:13 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			328 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			328 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/ash
 | |
| 
 | |
| encrypt_password() {
 | |
|   echo "${MQ_USERNAME}:${MQ_PASSWORD}" > /mosquitto/password.txt
 | |
|   mosquitto_passwd -U /mosquitto/password.txt
 | |
| }
 | |
| 
 | |
| main(){
 | |
| 
 | |
|  encrypt_password
 | |
|  echo "Starting MQ..."
 | |
|  # Run the main container command.
 | |
|  /docker-entrypoint.sh
 | |
|  /usr/sbin/mosquitto -c /mosquitto/config/mosquitto.conf
 | |
| 
 | |
| }
 | |
| 
 | |
| main "${@}"
 |