File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1+ * @ Luisfc68 @ MaximStanciu8 @ gsoares85 @ Dominikkq @ AndresQuijano
Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ jobs:
2727 run : cd docker-compose/local/ && ./gh-action-env.sh $GITHUB_TOKEN
2828
2929 - name : Building LPS environment...
30- run : cd docker-compose/local/ && LPS_STAGE=regtest sh lps-env.sh up
30+ run : cd docker-compose/local/ && LPS_STAGE=regtest ./lps-env.sh up
31+ shell : bash
3132
3233 - name : Checking LPS health...
3334 run : curl -X GET http://localhost:8080/health
3435
3536 - name : Shutting LPS environment down...
36- run : cd docker-compose/local/ && LPS_STAGE=regtest sh lps-env.sh down
37+ run : cd docker-compose/local/ && LPS_STAGE=regtest ./ lps-env.sh down
Original file line number Diff line number Diff line change @@ -7,6 +7,22 @@ COMMIT_TAG=$(git describe --exact-match --tags || echo "")
77export COMMIT_HASH
88export COMMIT_TAG
99
10+ # Detect OS
11+ OS_TYPE=" $( uname) "
12+
13+ if [[ " $OS_TYPE " == " Darwin" ]]; then
14+ # macOS
15+ echo " Running on macOS"
16+ SED_INPLACE=(" sed" " -i" " " )
17+ elif [[ " $OS_TYPE " == " Linux" ]]; then
18+ # Assume Ubuntu or other Linux
19+ echo " Running on Linux"
20+ SED_INPLACE=(" sed" " -i" )
21+ else
22+ echo " Unsupported OS: $OS_TYPE "
23+ exit 1
24+ fi
25+
1026if [ -z " ${LPS_STAGE} " ]; then
1127 echo " LPS_STAGE is not set. Exit 1"
1228 exit 1
@@ -33,7 +49,7 @@ echo "LPS_STAGE: $LPS_STAGE; ENV_FILE: $ENV_FILE; LPS_UID: $LPS_UID"
3349
3450# Force Management API to be enabled
3551if [ -f " $ENV_FILE " ]; then
36- sed -i ' s/^ENABLE_MANAGEMENT_API=.*/ENABLE_MANAGEMENT_API=true/' " $ENV_FILE "
52+ " ${SED_INPLACE[@]} " ' s/^ENABLE_MANAGEMENT_API=.*/ENABLE_MANAGEMENT_API=true/' " $ENV_FILE "
3753fi
3854
3955SCRIPT_CMD=$1
You can’t perform that action at this time.
0 commit comments