Skip to content

Commit

Permalink
Reinstate mkdir for IRONIC_DATA_DIR
Browse files Browse the repository at this point in the history
In openshift-metal3#564 we removed the mkdir like:

$ git show cdff373 | grep mkdir
-mkdir -p "$IRONIC_DATA_DIR/html/images"

But we still need IRONIC_DATA_DIR to exist, e.g to bind into the containers

We didn't catch this in CI or local testing because the images dir is cached.
  • Loading branch information
Steven Hardy committed Jun 19, 2019
1 parent 7868a02 commit d8548ac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ fi
if [ ! -d "$WORKING_DIR" ]; then
echo "Creating Working Dir"
sudo mkdir "$WORKING_DIR"
sudo chown "${USER}:${USER}" "$WORKING_DIR"
chmod 755 "$WORKING_DIR"
fi
sudo chown "${USER}:${USER}" "$WORKING_DIR"
chmod 755 "$WORKING_DIR"

if [ ! -d "$IRONIC_DATA_DIR" ]; then
echo "Creating Ironic Data Dir"
sudo mkdir "$IRONIC_DATA_DIR"
sudo chown "${USER}:${USER}" "$IRONIC_DATA_DIR"
chmod 755 "$IRONIC_DATA_DIR"
fi

0 comments on commit d8548ac

Please sign in to comment.