Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CDS_Overlay/do_overlay.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
31 lines (21 sloc)
763 Bytes
This file contains 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
#!/usr/bin/env bash | |
set -u | |
set -e | |
set -x | |
# Source the build variables of the container so we can be abstracted | |
. /root/env | |
WORKDIR="${CDS_BASE}/_work" | |
# it is implied that the do_overlay.sh is invoked inside at the root of overlay | |
MYPATH="${PWD}" | |
SRC_DSROOT="${MYPATH}/assets/dsroot" | |
SRC_DS="${MYPATH}/assets/ds" | |
## | |
## do the 'act of overlaying' | |
## | |
#move actual DS php executable to our legacy location | |
# mv ${CDS_HTMLROOTDIR}/${CDS_HTMLWAYFDIR}/${CDS_WAYFORIGINFILENAME} ${CDS_HTMLROOTDIR}/${CDS_HTMLWAYFDIR}/${CDS_WAYFDESTFILENAME} | |
# update the images directory | |
cp ${SRC_DSROOT}/images/logo.png ${CDS_HTMLROOTDIR}/images/ | |
cp ${SRC_DSROOT}/css/default-styles.css ${CDS_HTMLROOTDIR}/css/ | |
# overlay PHP files | |
cp ${SRC_DSROOT}/*.php ${CDS_HTMLROOTDIR}/ | |