- [ -e ${FREESIDE_DOCUMENT_ROOT} ] && mv ${FREESIDE_DOCUMENT_ROOT} ${FREESIDE_DOCUMENT_ROOT}.`date +%Y%m%d%H%M%S` || true
- cp -r masondocs ${FREESIDE_DOCUMENT_ROOT}
+ #ancient attempt to avoid overwriting customer modifications directly to production web files that's overlived its usefulness
+ #[ -e ${FREESIDE_DOCUMENT_ROOT} ] && mv ${FREESIDE_DOCUMENT_ROOT} ${FREESIDE_DOCUMENT_ROOT}.`date +%Y%m%d%H%M%S` || true
+ #cp -r masondocs ${FREESIDE_DOCUMENT_ROOT}
+ [ -h ${FREESIDE_DOCUMENT_ROOT} ] && rm ${FREESIDE_DOCUMENT_ROOT} || true
+ mkdir -p ${FREESIDE_DOCUMENT_ROOT}
+ cp -r masondocs/* masondocs/.htaccess ${FREESIDE_DOCUMENT_ROOT}