Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Nov 8, 2023
1 parent 03b5282 commit 5be80e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mods-available/reposerver.mod
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function testConnection
AUTH_HEADER="Authorization: Host $HOST_ID:$TOKEN"
fi

if ! curl -L --post301 -s -q -H "$AUTH_HEADER" -H "Content-Type: application/json" -X GET "$REPOSERVER_URL/api/v2/status" > /dev/null;then
if ! curl -L --post301 -s -q -H "$AUTH_HEADER" -H "Content-Type: application/json" -X GET "${REPOSERVER_URL}/api/v2/status" > /dev/null;then
echo -e " [$YELLOW ERROR $RESET] Cannot reach reposerver from ${YELLOW}${REPOSERVER_URL}${RESET}"
ERROR_STATUS=1
clean_exit
Expand Down Expand Up @@ -658,7 +658,7 @@ function getServerConf

# Demande de la configuration auprès du serveur de repos
# Ce dernier renverra la configuration au format JSON
CURL=$(curl -L --post301 -s -q -H "Authorization: Host $HOST_ID:$TOKEN" -X GET "$REPOSERVER_URL/api/v2/profile/server-settings" 2> /dev/null)
CURL=$(curl -L --post301 -s -q -H "Authorization: Host $HOST_ID:$TOKEN" -X GET "${REPOSERVER_URL}/api/v2/profile/server-settings" 2> /dev/null)
curl_result_parse

# Si il y a eu une erreur lors de la requête on quitte la fonction
Expand Down Expand Up @@ -770,7 +770,7 @@ function getProfileConf

# Demande de la configuration des repos auprès du serveur de repos
# Ce dernier renverra la configuration au format JSON
CURL=$(curl -L --post301 -s -q -H "Authorization: Host $HOST_ID:$TOKEN" -X GET "$REPOSERVER_URL/api/v2/profile/${PROFILE}" 2> /dev/null)
CURL=$(curl -L --post301 -s -q -H "Authorization: Host $HOST_ID:$TOKEN" -X GET "${REPOSERVER_URL}/api/v2/profile/${PROFILE}" 2> /dev/null)
curl_result_parse

# Si il y a eu une erreur lors de la requête on quitte la fonction
Expand Down

0 comments on commit 5be80e8

Please sign in to comment.