This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change amqconfig printing format
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const execSync = require("child_process").execSync; | ||
|
||
const AMQURL = execSync( | ||
`oc get addressspace datasync -o jsonpath='{.status.endpointStatuses[?(@.name=="messaging")].externalHost}'`, | ||
{ encoding: "utf8" } | ||
); | ||
|
||
|
||
const message = ` | ||
Obtained your credentials from the AMQ server. | ||
Please update your .env file with following config: | ||
MQTT_HOST = ${AMQURL} | ||
MQTT_PORT = 443; | ||
MQTT_PASSWORD = Password1; | ||
MQTT_USERNAME = messaging - user; | ||
MQTT_PROTOCOL = tls; | ||
` | ||
console.log(message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters