Skip to content

Commit

Permalink
Fix pip location in base init script.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Aug 10, 2023
1 parent 1882288 commit c58bdbe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions profiles/base/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ readonly ENABLE_SIGNING="${ENABLE_SIGNING:-0}"
readonly UPDATE_UI="${UPDATE_UI:-1}"
readonly SETUP_TEST_DATA="${SETUP_TEST_DATA:-0}"

PIP="python3.11 -m pip"

log_message() {
echo "$@" >&2
}
Expand All @@ -16,7 +18,7 @@ log_message() {
# so this is a workaround to install the pulp container snippets
setup_webserver_snippets() {
log_message "setting up pulp container webserver snippets"
LOCATION=$(pip show pulp-container | grep Location: | awk '{print$2}')
LOCATION=$(${PIP} show pulp-container | grep Location: | awk '{print$2}')
cp $LOCATION/pulp_container/app/webserver_snippets/nginx.conf /etc/nginx/pulp/pulp_container.conf || true
}

Expand Down Expand Up @@ -137,4 +139,4 @@ fi

# if [[ "$SETUP_TEST_DATA" -eq "1" ]]; then
# set_up_test_data
# fi
# fi

0 comments on commit c58bdbe

Please sign in to comment.