Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (23 sloc) 0.786 kb
#!/bin/sh
# Used by scripts/Makefile and scripts/rebar-pre-script to
# install yaws
rm -rf /tmp/yaws 2>/dev/null
set -e
./Install "${PREFIX}" "${ERL}" "${WERL}" "${ETCDIR}/" \
"${VARDIR}/" "${ERLBINDIR}/" "${DESTDIR}"
conffile="${DESTDIR}${ETCDIR}/yaws/yaws.conf"
if [ -f "$conffile" ]; then
echo "Keeping old config file $conffile"
cp yaws.conf "${conffile}.template"
else
echo "Installing $conffile"
if [ -n "$DESTDIR" ]; then
[ -d "$DESTDIR" ] || mkdir "$DESTDIR"
fi
[ -d "${DESTDIR}${ETCDIR}" ] || mkdir "${DESTDIR}${ETCDIR}"
[ -d "${DESTDIR}${ETCDIR}/yaws" ] || mkdir "${DESTDIR}${ETCDIR}/yaws"
cp yaws.conf "$conffile"
fi
cp ../ssl/yaws-cert.pem "${DESTDIR}${ETCDIR}/yaws"
cp ../ssl/yaws-key.pem "${DESTDIR}${ETCDIR}/yaws"
exit 0
Jump to Line
Something went wrong with that request. Please try again.