mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +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 "${@}"
|