1234567891011121314151617181920212223 |
- #!/bin/bash
- STORED_ASSETS="${OPENSHIFT_DATA_DIR}/assets"
- LIVE_ASSETS="${OPENSHIFT_REPO_DIR}/public/assets"
- if [ ! -d "${STORED_ASSETS}" ]; then
- echo " Creating permanent assets directory"
- mkdir "${STORED_ASSETS}"
- fi
- if [ -d "${LIVE_ASSETS}" ]; then
- echo " WARNING: Assets included in git repository, not using stored assets"
- else
- echo " Restoring stored assets"
- ln -s "${STORED_ASSETS}" "${LIVE_ASSETS}"
- fi
|