diff options
author | 2024-07-02 15:54:12 +0200 | |
---|---|---|
committer | 2024-07-04 14:56:30 +0200 | |
commit | 20fe7a7cefa72abc1294e1e972c28e86403ccb99 (patch) | |
tree | c250970cd8196947041fcfc819ca5d34bffae510 /src/main/scripts/getDslResult.sh | |
parent | 938d2eee202bb2eb33bd43f718f157b3ad4b84c6 (diff) |
Use eclipse-temurin:8-jre-alpine docker base image in aai-graphadmin
- use /bin/sh instead of /bin/bash for scripts
- use wget instead of curl
- do not check the container user when executing scripts
Issue-ID: AAI-3916
Change-Id: I3e7c6e47f8eb55f1e2f872e7e427b61fae8232bb
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'src/main/scripts/getDslResult.sh')
-rw-r--r-- | src/main/scripts/getDslResult.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/scripts/getDslResult.sh b/src/main/scripts/getDslResult.sh index 78286cd..9e6ece6 100644 --- a/src/main/scripts/getDslResult.sh +++ b/src/main/scripts/getDslResult.sh @@ -1,4 +1,4 @@ -#!/bin/ksh +#!/bin/sh ### # ============LICENSE_START======================================================= @@ -25,7 +25,7 @@ display_usage() { Usage: $0 [options] 1. Usage: getDslResult.sh <base-path or optional host url> <optional input-json-filepath> <optional -XFROMAPPID> <optional -XTRANSID> - 2. This script requires one argument, a base-path + 2. This script requires one argument, a base-path 3. Example for basepath: aai/{version}\ 4. Adding the optional input-json-payload replaces the default dsl payload with the contents of the input-file 5. The query result is returned in the file resources/migration-input-files/dslResults.json @@ -139,7 +139,7 @@ if [ $MISSING_PROP = false ]; then fi curl --request PUT -k $AUTHSTRING -H "X-FromAppId: $XFROMAPPID" -H "X-TransactionId: $XTRANSID" -H "Accept: application/json" -H "Content-Type: application/json" -T $fname $RESTURL$RESOURCE | jq '.' > $RESULTPATH RC=$? - + else echo "usage: $0 <base-path>" RC=-1 @@ -147,5 +147,5 @@ fi if [ "a$JSONFILE" = "a$TEMPFILE" ]; then rm $TEMPFILE fi -echo `date` " Done $0, exit code is $RC, returning result in $RESULTPATH" -exit $RC
\ No newline at end of file +echo `date` " Done $0, exit code is $RC, returning result in $RESULTPATH" +exit $RC |