Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Modify postman_setup.md and postman_setup.sh files #19

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/POSTMAN_SETUP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SETTING UP POSTMAN COLLECTIONS

We have a bash script `postman_setup.sh` under the [scripts](../scripts/post_installation.sh) directory that you can run to skip through the steps 1 and 5.
We have a bash script `postman_setup.sh` under the [src](../src/) directory that you can run to skip through the steps 1 and 5.
To run the script, you can do the following:
Go to the directory where the script is located and run the following command:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Copyright © 2023 The Mifos Initiative
```

# RUNNING THE POSTMAN COLLECTIONS
Detailed instructions for configuring your deployment to execute Postman collections against the Mifos-Gazelle can be found [here](./)
Detailed instructions for configuring your deployment to execute Postman collections against the Mifos-Gazelle can be found at `POSTMAN_SETUP.md` [here](./)


# USING THE DEPLOYED APPS
Expand Down
9 changes: 8 additions & 1 deletion src/postman_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ echo "RUN_DIR is $RUN_DIR"
BASE_DIR="$( cd $(dirname "$RUN_DIR") ; pwd )"
echo "BASE_DIR is $BASE_DIR"

exit
function welcome {
echo -e "\e[33mWARNING: In case you start getting service unavailable errors, please follow the Step 5 from the POSTMAN_SETPUP.md file.\e[0m"
echo -e "\e[33mWARNING: This script will only work if you have run the deployment atleast once successfully.\e[0m"
echo -e "\e[33mWARNING: This script uses the directory repos/phlabs/orchestration/feel/ to upload the BPMN diagrams to zeebe operations service.\e[0m"
}

# Check if the script is run with root privileges
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root" >&2
Expand All @@ -19,6 +24,8 @@ if [ $# -lt 1 ]; then
exit 1
fi

welcome

# Initialize variables
ip_address=$1
override=false
Expand Down