Skip to content

Commit

Permalink
Merge pull request #19 from Ratnesh2003/docs/modify-postman-setup
Browse files Browse the repository at this point in the history
docs: Modify postman_setup.md and postman_setup.sh files
  • Loading branch information
tdaly61 authored Sep 12, 2024
2 parents d589e57 + dc8bb99 commit f9fd493
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
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

0 comments on commit f9fd493

Please sign in to comment.