Created
April 29, 2014 12:50
-
-
Save johnathan-sewell/11399344 to your computer and use it in GitHub Desktop.
OpenShift deploy hooks for Ghost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Creating persistent Ghost data directory" | |
if [ ! -d "$OPENSHIFT_DATA_DIR/content/data" ]; then | |
mkdir -p $OPENSHIFT_DATA_DIR/content/data | |
fi | |
echo "Creating persistent Ghost images directory" | |
if [ ! -d "$OPENSHIFT_DATA_DIR/content/images" ]; then | |
mkdir -p $OPENSHIFT_DATA_DIR/content/images | |
fi | |
echo "Symlinking data directory" | |
ln -sf $OPENSHIFT_DATA_DIR/content/data $OPENSHIFT_REPO_DIR/content/data | |
echo "Symlinking images directory" | |
ln -sf $OPENSHIFT_DATA_DIR/content/images $OPENSHIFT_REPO_DIR/content/images |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment