Skip to content

Commit

Permalink
Move the mkdir to the top of the api script
Browse files Browse the repository at this point in the history
Merge pull request #502 from git-hyagi/change-mkdir-order
  • Loading branch information
decko authored Jun 13, 2023
2 parents 8b3c26f + 3a14e95 commit 91c3324
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES/472.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Moved the `mkdir` command to the top of `pulp-api` script.
8 changes: 4 additions & 4 deletions images/assets/pulp-api
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash -x

mkdir -p /var/lib/pulp/media \
/var/lib/pulp/assets \
/var/lib/pulp/tmp

/usr/bin/wait_on_postgres.py

# Get list of installed plugins via pip
Expand Down Expand Up @@ -27,10 +31,6 @@ if [ -n "${PULP_ADMIN_PASSWORD}" ]; then
fi
set -x

mkdir -p /var/lib/pulp/media \
/var/lib/pulp/assets \
/var/lib/pulp/tmp

# NOTE: Due to the Linux dual-stack functionality, this will listen on both IPv4
# IPv6, even though netstat may seem to indicate it is IPv6 only.
# Due to containers using network namespaces, even if the host has this disabled
Expand Down

0 comments on commit 91c3324

Please sign in to comment.